boolean (@NotNull VirtualFile virtualFile) { FileType fileType = virtualFile.getFileType(); // in lesser IDEs all special file types are plain text so check for that first if (fileType == FileTypes.PLAIN_TEXT) return false; if (fileType == StdFileTypes.GUI_DESIGNER_FORM || fileType == ModuleFileType.INSTANCE || fileType == ProjectFileType.INSTANCE || fileType == WorkspaceFileType.INSTANCE || fileType == StdFileTypes.PROPERTIES || fileType == StdFileTypes.XML || fileType == StdFileTypes.JSPX) { return true; } return false; }