diff --git a/platform/indexing-api/src/com/intellij/psi/search/FilenameIndex.java b/platform/indexing-api/src/com/intellij/psi/search/FilenameIndex.java index 7eb9e1997af6..b623f3910eae 100644 --- a/platform/indexing-api/src/com/intellij/psi/search/FilenameIndex.java +++ b/platform/indexing-api/src/com/intellij/psi/search/FilenameIndex.java @@ -136,7 +136,10 @@ public final class FilenameIndex { return result[0]; } - /** @return true if all the matching files were scanned, false if scanning was stopped early because the processor returns false */ + /** + * @param caseSensitively BEWARE: case-insensitive lookup is quite expensive, it involves full-scan over index! + * @return true if all the matching files were scanned, false if scanning was stopped early because the processor returns false + */ public static boolean processFilesByName(@NotNull String name, boolean caseSensitively, @NotNull GlobalSearchScope scope, @@ -144,7 +147,10 @@ public final class FilenameIndex { return processFilesByNames(Set.of(name), caseSensitively, scope, null, processor); } - /** @return true if all the matching files were scanned, false if scanning was stopped early because the processor returns false */ + /** + * @param caseSensitively BEWARE: case-insensitive lookup is quite expensive, it involves full-scan over index! + * @return true if all the matching files were scanned, false if scanning was stopped early because the processor returns false + */ public static boolean processFilesByNames(@NotNull Set names, boolean caseSensitively, @NotNull GlobalSearchScope scope, @@ -243,6 +249,7 @@ public final class FilenameIndex { return files; } + /** @param caseSensitively BEWARE: case-insensitive lookup is quite expensive, it involves full-scan over index! */ @ApiStatus.Experimental public static boolean hasVirtualFileWithName(@NotNull String name, boolean caseSensitively, @@ -251,6 +258,7 @@ public final class FilenameIndex { return !processFilesByNames(Set.of(name), caseSensitively, scope, filter, file -> false); } + /** @param caseSensitively BEWARE: case-insensitive lookup is quite expensive, it involves full-scan over index! */ @ApiStatus.Experimental public static @Nullable VirtualFile firstVirtualFileWithName(@NotNull String name, boolean caseSensitively,