boolean (final Project project, final VirtualFile file) { if (!isResourceFile(file)) { return false; } final Collection<? extends Artifact> artifacts = ArtifactBySourceFileFinder.getInstance(project).findArtifacts(file); return artifacts.isEmpty(); }