Esempio n. 1
0
 public JavaPsiFacadeKotlinHacks(@NotNull Project project) {
   this.javaFileManager = findJavaFileManager(project);
   this.extensionPsiElementFinders = Lists.newArrayList();
   for (PsiElementFinder finder : project.getExtensions(PsiElementFinder.EP_NAME)) {
     if (!(finder instanceof KotlinFinderMarker)) {
       this.extensionPsiElementFinders.add(finder);
     }
   }
 }
 @Nullable
 public static Configurable createProjectConfigurableForProvider(
     @NotNull Project project, Class<? extends ConfigurableProvider> providerClass) {
   return createConfigurableForProvider(
       project.getExtensions(Configurable.PROJECT_CONFIGURABLE), providerClass);
 }
 /** @deprecated create a new instance of configurable instead */
 @NotNull
 public static <T extends Configurable> T findProjectConfigurable(
     @NotNull Project project, @NotNull Class<T> configurableClass) {
   return findConfigurable(
       project.getExtensions(Configurable.PROJECT_CONFIGURABLE), configurableClass);
 }
 public static GroovyShortNamesCache getGroovyShortNamesCache(Project project) {
   return ObjectUtils.assertNotNull(
       ContainerUtil.findInstance(
           project.getExtensions(PsiShortNamesCache.EP_NAME), GroovyShortNamesCache.class));
 }