diff --git a/platform/projectModel-api/src/com/intellij/openapi/roots/FileIndex.java b/platform/projectModel-api/src/com/intellij/openapi/roots/FileIndex.java
index d2182f033471..0d8def9d6273 100644
--- a/platform/projectModel-api/src/com/intellij/openapi/roots/FileIndex.java
+++ b/platform/projectModel-api/src/com/intellij/openapi/roots/FileIndex.java
@@ -30,7 +30,7 @@ import java.util.Set;
*/
public interface FileIndex {
/**
- * Iterates all files and directories in the content.
+ * Iterates all files and directories under content roots skipping excluded and ignored files and directories.
*
* @param iterator the iterator receiving the files.
* @return false if files processing was stopped ({@link ContentIterator#processFile(VirtualFile)} returned false)
@@ -38,8 +38,8 @@ public interface FileIndex {
boolean iterateContent(@NotNull ContentIterator iterator);
/**
- * Iterates all files and directories in the content under directory dir (including the directory itself).
- * Does not iterate anything if dir is not in the content.
+ * Iterates all files and directories in the content under directory dir (including the directory itself) skipping excluded
+ * and ignored files and directories. Does not iterate anything if dir is not in the content.
*
* @param dir the directory the contents of which is iterated.
* @param iterator the iterator receiving the files.
@@ -48,17 +48,14 @@ public interface FileIndex {
boolean iterateContentUnderDirectory(@NotNull VirtualFile dir, @NotNull ContentIterator iterator);
/**
- * Returns true if fileOrDir is a file or directory under a content root of this
- * project or module.
- *
- * @param fileOrDir the file or directory to check.
- * @return true if the file or directory belongs to a content root, false otherwise.
+ * Returns {@code true} if {@code fileOrDir} is a file or directory under a content root of this project or module and not excluded or
+ * ignored.
*/
boolean isInContent(@NotNull VirtualFile fileOrDir);
/**
- * Returns true if file is a source file which belongs to sources of the content.
- * (Returns true for both source and test source).
fileOrDir is a file or directory from the content source.
- * (Returns true for both source and test source).
- *
- * @param fileOrDir the file or directory to check.
- * @return true if the file or directory belongs to a source or test source root, false otherwise.
+ * Returns {@code true} if {@code fileOrDir} is a file or directory located under a sources, tests or resources root and not excluded or ignored.
*/
boolean isInSourceContent(@NotNull VirtualFile fileOrDir);
/**
- * Returns true if fileOrDir is a file or directory from the test content source
+ * Returns true if {@code fileOrDir} is a file or directory located under a test sources or resources root and not excluded or ignored.
* * Use this method when you really need to check whether the file is under test roots according to project configuration. *
@@ -92,10 +85,7 @@ public interface FileIndex {
boolean isInTestSourceContent(@NotNull VirtualFile fileOrDir);
/**
- * Returns true if fileOrDir is a file or directory from the source root which have
- *
- * @param fileOrDir the file or directory to check.
- * @return true if the file or directory belongs to a source root of one of specified types, false otherwise
+ * Returns {@code true} if {@code fileOrDir} is a file or directory located under a source root of type from {@code rootTypes} set and not excluded or ignored
*/
boolean isUnderSourceRootOfType(@NotNull VirtualFile fileOrDir, @NotNull Set extends JpsModuleSourceRootType>> rootTypes);
}