Unnamed: 0
int64
0
305k
body
stringlengths
7
52.9k
name
stringlengths
1
185
32,600
boolean (PsiModifierListOwner owner, PsiAnnotation[] annotations) { final String id = AnnotationUtilEx.calcAnnotationValue(annotations, "value"); final String prefix = AnnotationUtilEx.calcAnnotationValue(annotations, "prefix"); final String suffix = AnnotationUtilEx.calcAnnotationValue(annotations, "suffix"); final Ba...
processAnnotationInjectionInner
32,601
boolean (BaseInjection injection, PsiModifierListOwner owner, PsiMethod method, int paramIndex) { processInjectionWithContext(injection, true); if (injection.isTerminal()) { return false; } return true; }
processXmlInjections
32,602
boolean (PsiVariable owner) { Ref<PsiElement> causeRef = Ref.create(); PsiElement anchor = owner.getFirstChild() instanceof PsiComment? (owner.getModifierList() != null? owner.getModifierList() : owner.getTypeElement()) : owner; if (anchor == null) return true; BaseInjection injection = mySupport.findCommentInjection(a...
processCommentInjections
32,603
void (BaseInjection injection, boolean settingsAvailable) { Language language = InjectorUtils.getLanguage(injection); if (language == null) return; String languageID = language.getID(); List<InjectionInfo> list = new ArrayList<>(); boolean unparsable = false; StringBuilder prefix = new StringBuilder(); //String suffix ...
processInjectionWithContext
32,604
void (Language language, List<InjectionInfo> list, boolean settingsAvailable, boolean unparsable) { }
processInjection
32,605
Collection<String> (@NotNull Project project) { // note: external annotations not supported return InjectionCache.getInstance(project).getAnnoIndex(); }
getAnnotatedElementsValue
32,606
Collection<String> (@NotNull Project project) { return InjectionCache.getInstance(project).getXmlIndex(); }
getXmlAnnotatedElementsValue
32,607
void (@NotNull MultiHostRegistrar registrar, @NotNull PsiElement context) { assert context instanceof GrLiteral; final GrLiteral literal = (GrLiteral)context; if (!literal.isValidHost()) return; processInPlace(registrar, literal); }
getLanguagesToInject
32,608
void (MultiHostRegistrar registrar, GrLiteral literal) { BaseInjection injection = findLanguageParams(literal); if (injection != null) { LanguageInjectionSupport support = InjectorUtils.findInjectionSupport(GroovyLanguageInjectionSupport.GROOVY_SUPPORT_ID); InjectorUtils.registerInjectionSimple(literal, injection, supp...
processInPlace
32,609
BaseInjection (PsiElement place) { PsiElement parent = place.getParent(); if (parent instanceof GrAssignmentExpression && ((GrAssignmentExpression)parent).getRValue() == place) { final GrExpression lvalue = ((GrAssignmentExpression)parent).getLValue(); if (lvalue instanceof GrReferenceExpression) { final PsiElement res...
findLanguageParams
32,610
BaseInjection (PsiModifierListOwner annotationOwner) { return CachedValuesManager.getCachedValue(annotationOwner, () -> CachedValueProvider.Result.create(calcLanguageParams(annotationOwner), PsiModificationTracker.MODIFICATION_COUNT)); }
getLanguageParams
32,611
BaseInjection (PsiModifierListOwner annotationOwner) { final Pair<String, ? extends Set<String>> pair = Configuration.getInstance().getAdvancedConfiguration().getLanguageAnnotationPair(); final PsiAnnotation[] annotations = getAnnotationFrom(annotationOwner, pair, true, true); if (annotations.length > 0) { String prefi...
calcLanguageParams
32,612
boolean (PsiModifierListOwner owner) { return owner instanceof GrMethod && ((GrMethod)owner).getReturnTypeElementGroovy() == null || owner instanceof GrVariable && ((GrVariable)owner).getTypeElementGroovy() == null || PsiUtilEx.isLanguageAnnotationTarget(owner); }
isLanguageAnnotationTargetGroovy
32,613
String () { return GROOVY_SUPPORT_ID; }
getId
32,614
BaseInjection (@NotNull PsiElement host, @Nullable Ref<? super PsiElement> commentRef) { PsiFile containingFile = host.getContainingFile(); boolean compiled = containingFile != null && containingFile.getOriginalFile() instanceof PsiCompiledFile; return compiled ? null : super.findCommentInjection(host, commentRef); }
findCommentInjection
32,615
boolean (PsiLanguageInjectionHost host) { return host instanceof GroovyPsiElement; }
isApplicableTo
32,616
boolean (PsiLanguageInjectionHost host) { return true; }
useDefaultInjector
32,617
String () { return "reference.settings.language.injection.groovy"; }
getHelpId
32,618
boolean (Language language, @Nullable PsiLanguageInjectionHost psiElement) { if (language == null) return false; if (!isStringLiteral(psiElement)) return false; return doInject(language.getID(), psiElement, psiElement); }
addInjectionInPlace
32,619
boolean (@Nullable final PsiLanguageInjectionHost psiElement) { if (!isStringLiteral(psiElement)) return false; GrLiteralContainer host = (GrLiteralContainer)psiElement; final HashMap<BaseInjection, Pair<PsiMethod, Integer>> injectionsMap = new HashMap<>(); final ArrayList<PsiElement> annotations = new ArrayList<>(); f...
removeInjectionInPlace
32,620
void (@NotNull GrLiteralContainer host, @NotNull Configuration configuration, @NotNull LanguageInjectionSupport support, @NotNull final HashMap<BaseInjection, Pair<PsiMethod, Integer>> injectionsMap, @NotNull final ArrayList<PsiElement> annotations) { new GrConcatenationAwareInjector.InjectionProcessor(configuration, s...
collectInjections
32,621
boolean (PsiVariable owner, PsiElement comment, BaseInjection injection) { ContainerUtil.addAll(annotations, comment); return true; }
processCommentInjectionInner
32,622
boolean (PsiModifierListOwner owner, PsiAnnotation[] annos) { ContainerUtil.addAll(annotations, annos); return true; }
processAnnotationInjectionInner
32,623
boolean (BaseInjection injection, PsiModifierListOwner owner, PsiMethod method, int paramIndex) { injectionsMap.put(injection, Pair.create(method, paramIndex)); return true; }
processXmlInjections
32,624
boolean (@NotNull String languageId, @NotNull PsiElement psiElement, @NotNull PsiLanguageInjectionHost host) { final PsiElement target = getTopLevelInjectionTarget(psiElement); final PsiElement parent = target.getParent(); final Project project = psiElement.getProject(); if (parent instanceof GrReturnStatement) { final...
doInject
32,625
Processor<PsiLanguageInjectionHost> (@NotNull final Project project, @NotNull final String languageId) { return host -> { if (host == null) return false; final Configuration.AdvancedConfiguration configuration = Configuration.getProjectInstance(project).getAdvancedConfiguration(); boolean allowed = configuration.isSour...
getAnnotationFixer
32,626
boolean (@Nullable PsiLanguageInjectionHost element) { if (element instanceof GrStringContent) { return true; } else if (element instanceof GrLiteral) { final IElementType type = GrLiteralImpl.getLiteralType((GrLiteral)element); return TokenSets.STRING_LITERALS.contains(type); } return false; }
isStringLiteral
32,627
PsiElement (@NotNull final PsiElement host) { PsiElement target = host; PsiElement parent = target.getParent(); for (; parent != null; target = parent, parent = target.getParent()) { if (parent instanceof GrBinaryExpression) continue; if (parent instanceof GrString) continue; if (parent instanceof GrParenthesizedExpres...
getTopLevelInjectionTarget
32,628
void (@NotNull PsiType qualifierType, @NotNull final PsiScopeProcessor scopeProcessor, @NotNull final PsiElement place, @NotNull final ResolveState state) { final PsiFile containingFile = place.getContainingFile(); if (containingFile == null) { PsiUtilCore.ensureValid(place); ResolveUtilKt.getLog().error("Containing fi...
processDynamicElements
32,629
boolean (@NotNull BaseInjection injection, @NotNull PsiFile file, @NotNull Processor<? super PsiElement> processor) { return processor.process(getRootByClasses(file, InjectorUtils.getPatternClasses(injection.getSupportId()))); }
processPatternContext
32,630
PsiFile (@NotNull PsiFile file, Class @NotNull [] classes) { final Project project = file.getProject(); SoftFactoryMap<Class[], PsiFile> map = project.getUserData(PATTERN_INJECTION_CONTEXT); if (map == null) { map = new SoftFactoryMap<>() { @Override protected PsiFile create(Class @NotNull [] key) { String text = Patte...
getRootByClasses
32,631
PsiFile (Class @NotNull [] key) { String text = PatternCompilerFactory.getFactory().getPatternCompiler(key).dumpContextDeclarations(); return PsiFileFactory.getInstance(project).createFileFromText("context.groovy", GroovyFileType.GROOVY_FILE_TYPE, text); }
create
32,632
boolean (final PsiFile file, Processor<? super PsiElement> processor) { final XmlTag tag = getTagByInjectedFile(file); final XmlTag parentTag = tag == null ? null : tag.getParentTag(); final String parentTagName = parentTag == null ? null : parentTag.getName(); final String name = tag == null ? null : tag.getName(); if...
processDevContext
32,633
XmlTag (final PsiFile file) { final SmartPsiElementPointer pointer = file.getUserData(FileContextUtil.INJECTED_IN_ELEMENT); final PsiElement element = pointer == null? null : pointer.getElement(); return element instanceof XmlText ? ((XmlText)element).getParentTag() : null; }
getTagByInjectedFile
32,634
boolean (@NotNull PsiFile file, @Nullable String type, @NotNull Processor<? super PsiElement> processor) { Project project = file.getProject(); Set<String> classNames = collectDevPatternClassNames(project); if (!classNames.isEmpty()) { JavaPsiFacade psiFacade = JavaPsiFacade.getInstance(project); for (String className ...
processRootsByClassNames
32,635
Set<String> (@NotNull final Project project) { CachedValue<Set<String>> cachedValue = project.getUserData(PATTERN_CLASSES); if (cachedValue == null) { cachedValue = CachedValuesManager.getManager(project).createCachedValue( () -> CachedValueProvider.Result.create(calcDevPatternClassNames(project), PsiModificationTracke...
collectDevPatternClassNames
32,636
Set<String> (@NotNull final Project project) { final List<String> roots = ContainerUtil.createLockFreeCopyOnWriteList(); JavaPsiFacade psiFacade = JavaPsiFacade.getInstance(project); PsiClass beanClass = psiFacade.findClass(PatternClassBean.class.getName(), GlobalSearchScope.allScope(project)); if (beanClass != null) {...
calcDevPatternClassNames
32,637
List<PatternContext> () { return PATTERN_CONTEXTS; }
getPatternContexts
32,638
boolean (@NotNull Language language) { return language == GroovyLanguage.INSTANCE; }
isMyLanguage
32,639
TokenSet () { return VARIABLE_DELIMITERS; }
getVariableDelimiters
32,640
PsiCodeFragment (@NotNull Project project, @NotNull String text, String contextId) { return new GroovyCodeFragment(project, text); }
createCodeFragment
32,641
String (@NotNull String pattern, @Nullable Language language, String contextId) { return CLASS_CONTEXT.getId().equals(contextId) ? "class AAAAA { " + PATTERN_PLACEHOLDER + " }" : PATTERN_PLACEHOLDER; }
getContext
32,642
boolean (@Nullable PsiElement element) { return element instanceof PsiIdentifier; }
isIdentifier
32,643
boolean (@NotNull PsiElement context) { return context.getLanguage().isKindOf(GroovyLanguage.INSTANCE); }
isMyContext
32,644
EquivalenceDescriptor (@NotNull PsiElement e) { final EquivalenceDescriptorBuilder builder = new EquivalenceDescriptorBuilder(); if (e instanceof GrVariableDeclaration) { return builder.elements(((GrVariableDeclaration)e).getVariables()); } else if (e instanceof GrParameter p) { return builder .element(p.getNameIdentif...
buildDescriptor
32,645
TokenSet () { return IGNORED_TOKENS; }
getIgnoredTokens
32,646
void (@NotNull PsiType qualifierType, @NotNull PsiScopeProcessor processor, @NotNull PsiElement place, @NotNull ResolveState state) { GlobalSearchScope scope = place.getResolveScope(); if (scope instanceof StructuralSearchScriptScope) { PsiPackage openApiPackage = JavaPsiFacade.getInstance(place.getProject()).findPacka...
processDynamicElements
32,647
void (PsiPackage psiPackage, Consumer<? super PsiClass> classConsumer) { for (PsiPackage aPackage : psiPackage.getSubPackages()) { traversePackage(aPackage, classConsumer); } for (PsiClass psiClass : psiPackage.getClasses()) { classConsumer.consume(psiClass); } }
traversePackage
32,648
void () { String s = """ def int x = 0; def y = 0; int z = 10; def int x1"""; doTest(s, "def $x$ = $value$;", 3, 1); doTest(s, "def $x$", 4, 3); doTest(s, "int $x$", 3, 3); doTest(s, "def $x$ = $value$", 3, 1); doTest(s, "def $x$ = 0", 2, 1); doTest(s, "int $x$ = 0", 1, 1); doTest(s, "int $x$ = $value$", 2, 2); }
test1
32,649
void () { String s = """ def void f(int x) {} def f(int x) { System.out.println("hello"); } def f(def x) {} void g(x) {} public def void f(def int y) { System.out.println("hello"); } def int f() {}"""; doTest(s, "def $f$($param$)", 5, 2); doTest(s, "def $f$($param$) {}", 3, 1); doTest(s, "void $f$($param$) {}", 2, 2); ...
test2
32,650
void () { String s = """ public class C implements I1, I2 { void f() { def a = 1; def int b = 2; } }"""; doTest(s, "class $name$", 1, 1); doTest(s, "class $name$ implements I1, I2", 1, 1); doTest(s, "class $name$ implements $interface$", 1, 0); doTest(s, "class '_T1 implements '_T2*", 1, 1); doTest(s, "class '_T1 imple...
test3
32,651
void () { String s = """ for (a in list) { println("hello1"); println("hello2"); }"""; doTest(s, """ for ($a$ in $b$) { $st1$; $st2$ }""", 1, 0); doTest(s, """ for ($a$ in $b$) { $st1$; $st2$; }""", 1, 1); doTest(s, """ for ($a$ in $b$) { $st1$ $st2$ }""", 1, 0); doTest(s, """ for ($a$ in $b$) { $st$ }""", 0, 0); doTes...
test4
32,652
void () { String s = """ class A { def f = { println('Hello1') println('Hello2') } def f1 = { println('Hello') } }"""; doTest(s, """ def $name$ = { '_T+ }""", 0, 0); final PatternContext old = options.getPatternContext(); try { options.setPatternContext(GroovyStructuralSearchProfile.CLASS_CONTEXT); doTest(s, """ def $n...
test5
32,653
void (String source, String pattern, int expectedOccurrences, int expectedWithDefaultEquivalence) { findAndCheck(source, pattern, expectedOccurrences); try { EquivalenceDescriptorProvider.ourUseDefaultEquivalence = true; findAndCheck(source, pattern, expectedWithDefaultEquivalence); } finally { EquivalenceDescriptorPro...
doTest
32,654
void (String source, String pattern, int expectedOccurrences) { assertEquals(expectedOccurrences, findMatchesCount(source, pattern, GroovyFileType.GROOVY_FILE_TYPE)); }
findAndCheck
32,655
String () { return "Groovy"; }
getName
32,656
String () { return GROOVY_DESCRIPTION; }
getDescription
32,657
String () { return DEFAULT_EXTENSION; }
getDefaultExtension
32,658
Icon () { return JetgroovyIcons.Groovy.Groovy_16x16; }
getIcon
32,659
boolean () { return true; }
isJVMDebuggingSupported
32,660
boolean (FileType ft) { return ft instanceof GroovyEnabledFileType || ft instanceof LanguageFileType && ((LanguageFileType)ft).getLanguage() == GroovyLanguage.INSTANCE; }
isGroovyEnabledFileType
32,661
Icon (@NotNull VirtualFile virtualFile, @Iconable.IconFlags int flags, @Nullable Project project) { if (project == null || !FileTypeRegistry.getInstance().isFileOfType(virtualFile, GroovyFileType.GROOVY_FILE_TYPE)) return null; final PsiFile psiFile = PsiManager.getInstance(project).findFile(virtualFile); if (!(psiFile...
getIcon
32,662
boolean (VirtualFile virtualFile) { return FileTypeRegistry.getInstance().isFileOfType(virtualFile, GroovyFileType.GROOVY_FILE_TYPE); }
value
32,663
PsiType (GrMethodCall methodCall, PsiMethod method) { GrExpression[] allArguments = PsiUtil.getAllArguments(methodCall); GrClosableBlock closure = null; for (GrExpression argument : allArguments) { if (argument instanceof GrClosableBlock) { closure = (GrClosableBlock)argument; break; } } if (closure == null) return nul...
fun
32,664
PsiType (GrMethodCall methodCall, PsiMethod method) { GrArgumentList argumentList = methodCall.getArgumentList(); GrExpression[] arguments = argumentList.getExpressionArguments(); if (arguments.length == 0) return null; return arguments[0].getType(); }
fun
32,665
void (PsiElement element) { encodeContextInfo(element, element); }
encodeContextInfo
32,666
void (PsiElement element, PsiElement scope) { if (!(element instanceof GroovyPsiElement)) return; if (PsiUtil.isThisReference(element)) { GrReferenceExpression thisExpr = (GrReferenceExpression)element; final PsiClass containingClass = PsiTreeUtil.getParentOfType(thisExpr, PsiClass.class); element.putCopyableUserData(K...
encodeContextInfo
32,667
void (PsiElement element, @Nullable PsiClass thisClass, @Nullable GrExpression thisAccessExpr) { if (!(element instanceof GroovyPsiElement)) return; for (PsiElement child = element.getFirstChild(); child != null; child = child.getNextSibling()) { decodeContextInfo(child, thisClass, thisAccessExpr); } if (element.getCop...
decodeContextInfo
32,668
void (PsiElement scope) { scope.putCopyableUserData(QUALIFIER_CLASS_KEY, null); scope.putCopyableUserData(REF_TO_CLASS, null); scope.putCopyableUserData(REF_TO_MEMBER, null); for (PsiElement child = scope.getFirstChild(); child != null; child = child.getNextSibling()) { clearContextInfo(child); } }
clearContextInfo
32,669
GrMethod (GrTypeDefinition aClass, PsiMethod method, PsiSubstitutor substitutor) { final Project project = aClass.getProject(); final boolean isAbstract = method.hasModifierProperty(PsiModifier.ABSTRACT); String templName = isAbstract ? JavaTemplateUtil.TEMPLATE_IMPLEMENTED_METHOD_BODY : JavaTemplateUtil.TEMPLATE_OVERR...
generateMethodPrototype
32,670
GrMethod (GrTypeDefinition aClass, GrTraitMethod method, PsiSubstitutor substitutor) { final Project project = aClass.getProject(); final GrMethod result = (GrMethod)GenerateMembersUtil.substituteGenericMethod(method, substitutor, aClass); setupModifierList(result); setupTraitMethodBody(project, result, method); setupR...
generateTraitMethodPrototype
32,671
void (GrMethod result, PsiMethod method) { if (method instanceof GrMethod && ((GrMethod)method).getReturnTypeElementGroovy() == null) { result.setReturnType(null); GrModifierList modifierList = result.getModifierList(); if (!modifierList.hasExplicitVisibilityModifiers()) { modifierList.setModifierProperty(GrModifier.DE...
setupReturnType
32,672
void (@NotNull GrTypeDefinition aClass, @NotNull PsiMethod method, @NotNull GrMethod result) { if (OverrideImplementUtil.isInsertOverride(method, aClass)) { result.getModifierList().addAnnotation(CommonClassNames.JAVA_LANG_OVERRIDE); } final GroovyPsiElementFactory factory = GroovyPsiElementFactory.getInstance(method.g...
setupAnnotations
32,673
void (GrMethod result) { PsiModifierList modifierList = result.getModifierList(); modifierList.setModifierProperty(PsiModifier.ABSTRACT, false); modifierList.setModifierProperty(PsiModifier.NATIVE, false); }
setupModifierList
32,674
PsiType (@NotNull PsiMethod superMethod) { if (superMethod instanceof GrMethod) { final GrTypeElement element = ((GrMethod)superMethod).getReturnTypeElementGroovy(); return element != null ? element.getType() : null; } return superMethod.getReturnType(); }
getSuperReturnType
32,675
void (Project project, PsiMethod method, GrMethod resultMethod, FileTemplate template, PsiSubstitutor substitutor) { final PsiType returnType = substitutor.substitute(getSuperReturnType(method)); String returnTypeText = ""; if (returnType != null) { returnTypeText = returnType.getPresentableText(); } Properties propert...
setupOverridingMethodBody
32,676
void (Project project, GrMethod resultMethod, GrTraitMethod traitMethod) { PsiClass traitClass = traitMethod.getPrototype().getContainingClass(); @NlsSafe StringBuilder builder = new StringBuilder(); builder.append("\nreturn "); builder.append(traitClass.getQualifiedName()); builder.append(".super."); builder.append(tr...
setupTraitMethodBody
32,677
void (@NotNull Project project, @NotNull Editor editor, @NotNull GrTypeDefinition aClass) { FeatureUsageTracker.getInstance().triggerFeatureUsed(ProductivityFeatureNames.CODEASSISTS_OVERRIDE_IMPLEMENT); chooseAndOverrideOrImplementMethods(project, editor, aClass, false); }
chooseAndOverrideMethods
32,678
void (@NotNull Project project, @NotNull Editor editor, @NotNull GrTypeDefinition aClass) { FeatureUsageTracker.getInstance().triggerFeatureUsed(ProductivityFeatureNames.CODEASSISTS_OVERRIDE_IMPLEMENT); chooseAndOverrideOrImplementMethods(project, editor, aClass, true); }
chooseAndImplementMethods
32,679
void (@NotNull Project project, @NotNull final Editor editor, @NotNull final GrTypeDefinition aClass, boolean toImplement) { LOG.assertTrue(aClass.isValid()); ApplicationManager.getApplication().assertReadAccessAllowed(); Collection<CandidateInfo> candidates = GroovyOverrideImplementExploreUtil.getMethodsToOverrideImpl...
chooseAndOverrideOrImplementMethods
32,680
String (PsiMethod superMethod, PsiMethod overriding) { @NonNls StringBuilder buffer = new StringBuilder(); if (!superMethod.isConstructor() && !PsiTypes.voidType().equals(superMethod.getReturnType())) { buffer.append("return "); } buffer.append("super"); PsiParameter[] parms = overriding.getParameterList().getParameter...
callSuper
32,681
PsiElement () { return null; }
resolve
32,682
File[] (String dirPath, final String patternString) { final Pattern pattern = Pattern.compile(patternString); return LibrariesUtil.getFilesInDirectoryByPattern(dirPath, pattern); }
getFilesInDirectoryByPattern
32,683
GrTypeDefinition (@NotNull Project project, @NotNull VirtualFile file) { return getPublicClass(file, PsiManager.getInstance(project)); }
getPublicClass
32,684
GrTypeDefinition (@Nullable VirtualFile virtualFile, @NotNull PsiManager manager) { if (virtualFile == null) return null; PsiElement psiFile = manager.findFile(virtualFile); if (psiFile instanceof PsiCompiledFile) { psiFile = psiFile.getNavigationElement(); } if (psiFile instanceof GroovyFile) { return getClassDefiniti...
getPublicClass
32,685
GrTypeDefinition (@NotNull GroovyFile groovyFile) { String fileName = groovyFile.getName(); int idx = fileName.lastIndexOf('.'); if (idx < 0) return null; return getClassDefinition(groovyFile, fileName.substring(0, idx)); }
getClassDefinition
32,686
GrTypeDefinition (@NotNull GroovyFile groovyFile, @NotNull String classSimpleName) { for (GrTypeDefinition definition : (groovyFile).getTypeDefinitions()) { if (classSimpleName.equals(definition.getName())) { return definition; } } return null; }
getClassDefinition
32,687
T () { while (true) { T value = myValueRef.get(); if (value != null) return value; // value already computed and cached final NotNullComputable<T> computable = myComputable; if (computable == null) continue; // computable is null only after some thread succeeds CAS RecursionGuard.StackStamp stamp = RecursionManager.mar...
compute
32,688
boolean () { return myValueRef.get() != null; }
isComputed
32,689
long () { SdkHomeBean sdkHome = mySdkHome; return sdkHome == null ? 0 : sdkHome.getModificationCount(); }
getStateModificationCount
32,690
SdkHomeBean () { return mySdkHome; }
getState
32,691
void (@NotNull SdkHomeBean state) { SdkHomeBean oldState = mySdkHome; mySdkHome = state; // do not increment on a first load if (oldState != null && !StringUtil.equals(oldState.getSdkHome(), state.getSdkHome())) { myManager.dropPsiCaches(); } }
loadState
32,692
VirtualFile (@Nullable SdkHomeBean state) { if (state == null) { return null; } final String sdk_home = state.getSdkHome(); if (StringUtil.isEmpty(sdk_home)) { return null; } return StandardFileSystems.local().findFileByPath(sdk_home); }
calcHome
32,693
VirtualFile () { return calcHome(mySdkHome); }
getSdkHome
32,694
List<VirtualFile> () { return calcRoots(getSdkHome()); }
getClassRoots
32,695
List<VirtualFile> (@Nullable VirtualFile home) { if (home == null) return Collections.emptyList(); VirtualFile lib = home.findChild("lib"); if (lib == null) return Collections.emptyList(); List<VirtualFile> result = new ArrayList<>(); for (VirtualFile file : lib.getChildren()) { if ("jar".equals(file.getExtension())) {...
calcRoots
32,696
boolean (@NotNull PsiFile file) { return file instanceof GroovyFileBase && isGroovySourceFile((GroovyFileBase)file); }
isGroovySourceFile
32,697
boolean (@NotNull GroovyFileBase file) { return isInSourceFiles(file.getVirtualFile(), file.getProject()); }
isGroovySourceFile
32,698
boolean (@Nullable VirtualFile file, @NotNull Project project) { if (file != null && !(file instanceof LightVirtualFile)) { final FileIndexFacade index = FileIndexFacade.getInstance(project); if (index.isInSource(file) || index.isInLibraryClasses(file)) { return true; } } return false; }
isInSourceFiles
32,699
Collection<MethodSignature> (@NotNull GrTypeDefinition aClass) { if (aClass.isAnnotationType()) return Collections.emptySet(); return getMapToOverrideImplement(aClass, false, true).keySet(); }
getMethodSignaturesToOverride