boolean (VirtualFile file) { if (file != null && file.isDirectory()) { final String path = file.getPath(); GroovyHomeKind kind = GroovyHomeKind.fromString(path); return kind != null; } return false; }