public static boolean isExcluded(final VirtualFile vFile, final Project project) {
    return vFile != null
           && FileIndexFacade.getInstance(project).isInSource(vFile)
           && CompilerConfiguration.getInstance(project).isExcludedFromCompilation(vFile);
  }
public static boolean isExcluded(final VirtualFile vFile, final Project project)