boolean (@NotNull String path) { if (PsiUtil.isPathToIntelliJIdeaSources(path)) { return true; } File home = new File(path); return home.exists() && getBuildNumber(path) != null && getPlatformApiJar(path) != null; }