boolean (PsiDirectory @NotNull [] dirs, @NotNull FileTemplate template) { FileType fileType = getFileType(template); if (fileType.equals(FileTypes.UNKNOWN)) return false; CreateFromTemplateHandler handler = findHandler(template); return handler.canCreate(dirs); }