public boolean hasProjectImports() {
    ProjectFileIndex fileIndex = ProjectFileIndex.getInstance(getStartElement().getProject());
    for (ImportCandidateHolder anImport : myImports) {
      PsiFileSystemItem importFile = anImport.getFile();
      VirtualFile file = importFile != null ? importFile.getVirtualFile() : null;
      if (file != null && fileIndex.isInContent(file)) {
        return true;
      }
    }
    return false;
  }
public boolean hasProjectImports()