remove @deprecated for now to greenify clients (to be deprecated as 2017.1 EAP starts...
[idea/community.git] / platform / projectModel-api / src / com / intellij / openapi / roots / ProjectFileIndex.java
index 369866a3fa57c43a64ca4e076aca125a8d42e9fb..06e520641a918887bd2a9e74a3bd59fcdd3b3aaf 100644 (file)
@@ -35,10 +35,15 @@ public interface ProjectFileIndex extends FileIndex {
     private SERVICE() { }
 
     public static ProjectFileIndex getInstance(Project project) {
     private SERVICE() { }
 
     public static ProjectFileIndex getInstance(Project project) {
-      return ServiceManager.getService(project, ProjectFileIndex.class);
+      return ProjectFileIndex.getInstance(project);
     }
   }
 
     }
   }
 
+  @NotNull
+  static ProjectFileIndex getInstance(@NotNull Project project) {
+    return ServiceManager.getService(project, ProjectFileIndex.class);
+  }
+
   /**
    * Returns module to which content the specified file belongs or null if the file does not belong to content of any module.
    */
   /**
    * Returns module to which content the specified file belongs or null if the file does not belong to content of any module.
    */