Unnamed: 0
int64
0
305k
body
stringlengths
7
52.9k
name
stringlengths
1
185
29,900
boolean (PsiElement position) { PsiElement parent = position.getParent(); PsiElement pparent = parent.getParent(); return parent instanceof GrVariable && ((GrVariable)parent).getNameIdentifierGroovy() == position && ((GrVariable)parent).getTypeElementGroovy() == null && pparent instanceof GrVariableDeclaration && ((GrV...
isTupleVarNameWithoutTypeDeclared
29,901
void (GrReferenceElement referenceElement, PrefixMatcher matcher, CompletionParameters parameters, Consumer<LookupElement> consumer) { if (referenceElement instanceof GrCodeReferenceElementImpl) { CompleteCodeReferenceElement.complete((GrCodeReferenceElement)referenceElement, matcher, consumer); } else if (referenceEle...
processVariants
29,902
boolean (PsiElement position) { //Closure cl={String x, <caret>... if (position == null) return false; if (position instanceof PsiWhiteSpace || position.getNode().getElementType() == GroovyTokenTypes.mNLS) { position = FilterPositionUtil.searchNonSpaceNonCommentBack(position); } boolean hasCommas = false; while (positi...
isInPossibleClosureParameter
29,903
PsiType (@Nullable PsiElement qualifier) { PsiType qualifierType = qualifier instanceof GrExpression ? ((GrExpression)qualifier).getType() : null; if (ResolveUtil.resolvesToClass(qualifier)) { PsiType type = ResolveUtil.unwrapClassType(qualifierType); if (type != null) { qualifierType = type; } } return qualifierType; ...
getQualifierType
29,904
boolean (@NotNull PsiElement qualifier) { return qualifier instanceof GrReferenceExpression && resolvePackageFqn((GrReferenceElement<?>)qualifier) != null; }
canResolveToPackage
29,905
Preference (@NotNull final PsiElement position) { if (INSIDE_REFERENCE_LIST.accepts(position)) { GrReferenceList list = (GrReferenceList)position.getParent().getParent(); PsiElement parent = list.getParent(); if (parent instanceof GrTypeDefinition cls) { if (cls.isInterface() && list == cls.getExtendsClause() || list =...
getPreferredCondition
29,906
Comparable (@NotNull LookupElement element, @NotNull CompletionLocation location) { final PsiElement position = location.getCompletionParameters().getPosition(); if (position.getLanguage() == GroovyLanguage.INSTANCE) return null; if (!(position.getParent() instanceof GrReferenceExpression)) return null; Object o = elem...
weigh
29,907
Integer (@NotNull LookupElement element, @NotNull CompletionLocation location) { if (!(location.getCompletionParameters().getPosition().getContainingFile() instanceof GroovyFileBase)) { return null; } Object o = element.getObject(); if (o instanceof ResolveResult) { o = ((ResolveResult)o).getElement(); } if (o instance...
weigh
29,908
Comparable (@NotNull LookupElement element, @NotNull CompletionLocation location) { final PsiElement position = location.getCompletionParameters().getPosition(); if (!(position.getContainingFile() instanceof GroovyFileBase)) return null; Object o = element.getObject(); if (o instanceof ResolveResult) { o = ((ResolveRes...
weigh
29,909
boolean (Object o) { return PRIORITY_KEYWORDS.contains(o); }
isPriorityKeyword
29,910
boolean (Object o) { return o instanceof LightElement && !(o instanceof GrPropertyForCompletion) && !(o instanceof GrAccessorMethod); }
isLightElement
29,911
boolean (PsiMember o) { final PsiClass containingClass = o.getContainingClass(); return containingClass != null && TRASH_CLASSES.contains(containingClass.getQualifiedName()); }
isTrashMethod
29,912
boolean (PsiMember member) { return member instanceof PsiMethod && (GroovyPropertyUtils.isSimplePropertyAccessor((PsiMethod)member) || "setProperty".equals(((PsiMethod)member).getName())); }
isAccessor
29,913
boolean (PsiMember member, PsiElement qualifier) { if (!(qualifier instanceof GrExpression)) return false; final PsiType type = ((GrExpression)qualifier).getType(); if (!(type instanceof PsiClassType)) return false; final PsiClass psiClass = ((PsiClassType)type).resolve(); if (psiClass == null) return false; return qua...
isQualifierClassMember
29,914
void (@NotNull Editor editor, @NotNull GroovySmartEnterProcessor processor, @NotNull PsiElement psiElement) { GrCatchClause catchClause = PsiTreeUtil.getParentOfType(psiElement, GrCatchClause.class); if (catchClause == null || catchClause.getBody() != null) return; if (!PsiTreeUtil.isAncestor(catchClause.getParameter()...
apply
29,915
void (@NotNull PsiElement atCaret, @NotNull OrderedSet<PsiElement> res, boolean recurse) { res.add(0, atCaret); if (doNotStepInto(atCaret)) { if (!recurse) return; recurse = false; } PsiElement parent = atCaret.getParent(); if (atCaret instanceof GrClosableBlock && parent instanceof GrStringInjection && parent.getParen...
collectAllElements
29,916
boolean (PsiElement element) { return element instanceof PsiClass || element instanceof GrCodeBlock || element instanceof GrStatement && !(element instanceof GrExpression) || PsiUtil.isExpressionStatement(element) || element instanceof GrMethod; }
doNotStepInto
29,917
PsiElement (Editor editor, PsiFile psiFile) { PsiElement atCaret = super.getStatementAtCaret(editor, psiFile); if (atCaret instanceof PsiWhiteSpace) return null; while (atCaret != null && !PsiUtil.isExpressionStatement(atCaret)) { if (atCaret instanceof PsiMethod || atCaret instanceof GrDocComment || atCaret instanceof...
getStatementAtCaret
29,918
PsiElement[] (PsiElement element) { PsiElement psiChild = element.getFirstChild(); if (psiChild == null) return PsiElement.EMPTY_ARRAY; List<PsiElement> result = new ArrayList<>(); while (psiChild != null) { result.add(psiChild); psiChild = psiChild.getNextSibling(); } return PsiUtilCore.toPsiElementArray(result); }
getChildren
29,919
void (@NotNull Editor editor, @NotNull GroovySmartEnterProcessor processor, @NotNull PsiElement psiElement) { if (!(psiElement instanceof GrIfStatement ifStatement)) return; final Document document = editor.getDocument(); final GrStatement elseBranch = ifStatement.getElseBranch(); final PsiElement elseElement = ifState...
apply
29,920
void (@NotNull Editor editor, @NotNull GroovySmartEnterProcessor processor, @NotNull PsiElement psiElement) { if (psiElement instanceof GrListOrMap) { final PsiElement brack = ((GrListOrMap)psiElement).getRBrack(); if (brack == null) { editor.getDocument().insertString(psiElement.getTextRange().getEndOffset(), "]"); } ...
apply
29,921
void (@NotNull Editor editor, @NotNull GroovySmartEnterProcessor processor, @NotNull PsiElement psiElement) { final PsiElement parent = psiElement.getParent(); if (parent instanceof GrReferenceExpression && !(parent.getParent() instanceof GrMethodCall) && hasOnlyClosureParam((GrReferenceExpression)parent)) { final int ...
apply
29,922
boolean (GrReferenceExpression ref) { if (ref.resolve() != null) return false; GroovyResolveResult[] results = ref.multiResolve(true); for (GroovyResolveResult result : results) { final PsiElement element = result.getElement(); if (element instanceof PsiMethod) { final PsiParameter[] parameters = ((PsiMethod)element).g...
hasOnlyClosureParam
29,923
void (@NotNull Editor editor, @NotNull GroovySmartEnterProcessor processor, @NotNull PsiElement psiElement) { if (psiElement instanceof GrLiteral) { String text = psiElement.getText(); if (StringUtil.startsWith(text, "'''")) { if (!StringUtil.endsWith(text, "'''")) { editor.getDocument().insertString(psiElement.getText...
apply
29,924
void (@NotNull Editor editor, @NotNull GroovySmartEnterProcessor processor, @NotNull PsiElement psiElement) { if (psiElement instanceof GrIfStatement ifStatement) { final Document doc = editor.getDocument(); final PsiElement rParen = ifStatement.getRParenth(); final PsiElement lParen = ifStatement.getLParenth(); final ...
apply
29,925
void (@NotNull Editor editor, @NotNull GroovySmartEnterProcessor processor, @NotNull PsiElement psiElement) { GrForStatement forStatement = PsiTreeUtil.getParentOfType(psiElement, GrForStatement.class); if (forStatement == null) return; final Document doc = editor.getDocument(); PsiElement body = forStatement.getBody()...
apply
29,926
int (Document doc, PsiElement psiElement) { return doc.getLineNumber(psiElement.getTextRange().getStartOffset()); }
startLine
29,927
void (@NotNull Editor editor, @NotNull GroovySmartEnterProcessor processor, @NotNull PsiElement psiElement) { if (psiElement instanceof GrParameterList && psiElement.getParent() instanceof GrMethod) { PsiElement rParenth = ((GrParameterList)psiElement).getRParen(); // TODO ends with comma if (rParenth == null || !")".e...
apply
29,928
void (@NotNull Editor editor, @NotNull GroovySmartEnterProcessor processor, @NotNull PsiElement psiElement) { if (!(psiElement instanceof GrMethod method)) return; final PsiClass aClass = method.getContainingClass(); if (aClass != null && aClass.isInterface() || method.hasModifierProperty(PsiModifier.ABSTRACT)) return;...
apply
29,929
void (@NotNull Editor editor, @NotNull GroovySmartEnterProcessor processor, @NotNull PsiElement psiElement) { if (psiElement instanceof GrWhileStatement whileStatement) { final Document doc = editor.getDocument(); final PsiElement rParenth = whileStatement.getRParenth(); final PsiElement lParenth = whileStatement.getLP...
apply
29,930
void (@NotNull Editor editor, @NotNull GroovySmartEnterProcessor processor, @NotNull PsiElement psiElement) { GrSynchronizedStatement synchronizedStatement = PsiTreeUtil.getParentOfType(psiElement, GrSynchronizedStatement.class); if (synchronizedStatement == null || synchronizedStatement.getBody() != null) return; if (...
apply
29,931
void (@NotNull Editor editor, @NotNull GroovySmartEnterProcessor processor, @NotNull PsiElement psiElement) { final GrArgumentList argList = psiElement instanceof GrCall ? ((GrCall)psiElement).getArgumentList() : null; if (argList == null || argList instanceof GrCommandArgumentList) return; GrCall call = (GrCall)psiEle...
apply
29,932
void (@NotNull Editor editor, @NotNull GroovySmartEnterProcessor processor, @NotNull PsiElement psiElement) { GrSwitchStatement switchStatement = PsiTreeUtil.getParentOfType(psiElement, GrSwitchStatement.class); if (switchStatement == null || switchStatement.getLBrace() != null) return; if (!PsiTreeUtil.isAncestor(swit...
apply
29,933
void (@NotNull Editor editor, @NotNull GroovySmartEnterProcessor processor, @NotNull PsiElement psiElement) { if (!(psiElement instanceof GrWhileStatement whileStatement)) return; final Document doc = editor.getDocument(); PsiElement body = whileStatement.getBody(); if (body instanceof GrBlockStatement) return; if (bod...
apply
29,934
GrCodeBlock (int caret, PsiElement element) { GrStatement body = null; if (element instanceof GrMethod) return ((GrMethod)element).getBlock(); if (element instanceof GrMethodCall) { final GrClosableBlock[] arguments = ((GrMethodCall)element).getClosureArguments(); if (arguments.length > 0) return arguments[0]; else ret...
getControlStatementBlock
29,935
boolean (PsiElement psiElement, PsiFile file, @NotNull Editor editor, boolean modified) { GrCodeBlock block = getControlStatementBlock(editor.getCaretModel().getOffset(), psiElement); if (block != null) { PsiElement firstElement = block.getFirstChild().getNextSibling(); final int offset = firstElement != null ? firstEl...
doEnter
29,936
void (@NotNull InsertionContext context, @NotNull LookupElement item) { int tailOffset = context.getTailOffset(); PsiElement argumentList = context.getFile().findElementAt(tailOffset - 1); while (argumentList != null && !(argumentList instanceof GrArgumentList) && !(argumentList instanceof GrListOrMap)) { argumentList ...
handleInsert
29,937
void (@NotNull final InsertionContext context, @NotNull LookupElement item) { final PsiClassType.ClassResolveResult resolveResult = myClassType.resolveGenerics(); final PsiClass psiClass = resolveResult.getElement(); if (psiClass == null || !psiClass.isValid()) { return; } GroovyPsiElement place = PsiTreeUtil.findEleme...
handleInsert
29,938
void (InsertionContext context) { int offset = context.getStartOffset(); final String text = context.getDocument().getText(); while (text.charAt(offset) != '<' && text.charAt(offset) != '(') { offset++; } if (text.charAt(offset) == '<') { GroovyCompletionUtil.shortenReference(context.getFile(), offset); } }
shortenRefsInGenerics
29,939
Runnable (final Editor editor, final PsiFile file) { final Project project = file.getProject(); PsiDocumentManager.getInstance(project).commitAllDocuments(); int offset = editor.getCaretModel().getOffset(); PsiElement element = file.findElementAt(offset); if (element == null) return null; PsiElement parent = element.ge...
generateAnonymousBody
29,940
void (@NotNull InsertionContext context, @NotNull LookupElement item) { context.getDocument().deleteString(context.getStartOffset(), context.getTailOffset()); PsiMethod method = (PsiMethod)item.getObject(); List<PsiMethod> prototypes = OverrideImplementUtil.overrideOrImplementMethod(myPsiClass, method, false); context....
handleInsert
29,941
void (@NotNull InsertionContext context, @NotNull LookupElement item) { if (!(item.getObject() instanceof PsiMethod method)) { return; } PsiDocumentManager.getInstance(context.getProject()).commitDocument(context.getEditor().getDocument()); final Editor editor = context.getEditor(); final PsiParameter[] parameters = me...
handleInsert
29,942
void (final Project project, final Editor editor, InsertionContext context, int offset) { PsiDocumentManager.getInstance(project).commitDocument(editor.getDocument()); final PsiElement element = context.getFile().findElementAt(offset); final GrDocMemberReference tagValue = PsiTreeUtil.getParentOfType(element, GrDocMemb...
shortenReferences
29,943
void (@NotNull LookupElement element) { myAccumulator.add(element); }
consume
29,944
void (CompletionParameters parameters) { Set<LookupElement> newSet = new HashSet<>(myAccumulator); myAccumulator.clear(); myResultSet.addAllElements(newSet); }
fastElementsProcessed
29,945
void () { close(); myResultSet.stopHere(); }
interrupt
29,946
void () { myResultSet.addAllElements(myAccumulator); }
close
29,947
GroovyCompletionConsumer (@NotNull Function<? super CompletionResultSet, ? extends CompletionResultSet> transformer) { return new AccumulatingGroovyCompletionConsumer(transformer.apply(getCompletionResultSet()), myAccumulator); }
transform
29,948
CompletionResultSet () { return myResultSet; }
getCompletionResultSet
29,949
void (@NotNull LookupElement element) { myResultSet.consume(element); }
consume
29,950
void () { myResultSet.stopHere(); }
interrupt
29,951
void () { }
close
29,952
GroovyCompletionConsumer (@NotNull Function<? super CompletionResultSet, ? extends CompletionResultSet> transformer) { return new FastGroovyCompletionConsumer(transformer.apply(getCompletionResultSet())); }
transform
29,953
CompletionResultSet () { return myResultSet; }
getCompletionResultSet
29,954
void (@NotNull final PsiReferenceRegistrar registrar) { registrar.registerReferenceProvider(PlatformPatterns.psiElement(GrLiteral.class), new PropertiesReferenceProvider(), PsiReferenceRegistrar.LOWER_PRIORITY); registrar.registerReferenceProvider(GroovyPatterns.stringLiteral().withParent(GrAnnotationNameValuePair.clas...
registerReferenceProviders
29,955
boolean (InsertionContext context, int startOffset, LookupElement item) { PsiFile file = context.getFile(); if (!(file instanceof GroovyFile)) return false; PsiElement element = file.findElementAt(startOffset); while (element != null && !(element instanceof PsiFile) && !(element instanceof GrDocComment)) { element = el...
isAcceptable
29,956
void (InsertionContext context, int startOffset, LookupElement item) { Editor editor = context.getEditor(); Object o = item.getObject(); assert o instanceof PsiMethod; PsiMethod method = (PsiMethod) o; StringBuffer buffer = new StringBuffer(); buffer.append("("); PsiParameterList params = method.getParameterList(); int...
handleInsert
29,957
int (InsertionContext context, int startOffset, PsiMethod method, StringBuffer buffer) { Document document = context.getEditor().getDocument(); int offset = startOffset + method.getName().length(); String paramText = buffer.toString(); document.insertString(offset, paramText); int endOffset = offset + paramText.length(...
shortenParamterReferences
29,958
IElementType () { return GroovyTokenTypes.mCOMMA; }
getActualParameterDelimiterType
29,959
IElementType () { return GroovyTokenTypes.mGT; }
getActualParametersRBraceType
29,960
Class<GrTypeArgumentList> () { return GrTypeArgumentList.class; }
getArgumentListClass
29,961
GrTypeArgumentList (@NotNull CreateParameterInfoContext context) { final GrTypeArgumentList parameterList = ParameterInfoUtils.findParentOfType(context.getFile(), context.getOffset(), GrTypeArgumentList.class); if (parameterList != null) { if (!(parameterList.getParent() instanceof GrCodeReferenceElement ref)) return n...
findElementForParameterInfo
29,962
void (@NotNull GrTypeArgumentList element, @NotNull CreateParameterInfoContext context) { context.showHint(element, element.getTextRange().getStartOffset() + 1, this); }
showParameterInfo
29,963
GrTypeArgumentList (@NotNull UpdateParameterInfoContext context) { return ParameterInfoUtils.findParentOfType(context.getFile(), context.getOffset(), GrTypeArgumentList.class); }
findElementForUpdatingParameterInfo
29,964
void (@NotNull GrTypeArgumentList parameterOwner, @NotNull UpdateParameterInfoContext context) { int index = ParameterInfoUtils.getCurrentParameterIndex(parameterOwner.getNode(), context.getOffset(), getActualParameterDelimiterType()); context.setCurrentParameter(index); final Object[] objectsToView = context.getObject...
updateParameterInfo
29,965
void (PsiTypeParameter p, @NotNull ParameterInfoUIContext context) { @NonNls StringBuilder buffer = new StringBuilder(); buffer.append(p.getName()); int highlightEndOffset = buffer.length(); buffer.append(" extends "); buffer.append(StringUtil.join(p.getSuperTypes(), t -> t.getPresentableText(), ", ")); context.setupUI...
updateUI
29,966
GroovyPsiElement (@NotNull CreateParameterInfoContext context) { GroovyPsiElement place = findAnchorElement(context.getEditor().getCaretModel().getOffset(), context.getFile()); if (place == null) { return null; } final List<Object> itemsToShow = collectParameterInfo(place); context.setItemsToShow(ArrayUtil.toObjectArra...
findElementForParameterInfo
29,967
GroovyPsiElement (@NotNull UpdateParameterInfoContext context) { return findAnchorElement(context.getEditor().getCaretModel().getOffset(), context.getFile()); }
findElementForUpdatingParameterInfo
29,968
GroovyPsiElement (int offset, PsiFile file) { PsiElement element = file.findElementAt(offset); if (element == null) return null; GroovyPsiElement argList = PsiTreeUtil.getParentOfType(element, GrArgumentList.class); if (argList != null) return argList; final GrCall call = PsiTreeUtil.getParentOfType(element, GrCall.cla...
findAnchorElement
29,969
void (@NotNull GroovyPsiElement place, @NotNull CreateParameterInfoContext context) { context.showHint(place, place.getTextRange().getStartOffset(), this); }
showParameterInfo
29,970
List<Object> (@NotNull GroovyPsiElement place) { GroovyResolveResult[] variants = ResolveUtil.getCallVariants(place); final List<Object> elementToShow = new ArrayList<>(); final PsiElement parent = place.getParent(); if (parent instanceof GrMethodCall) { final GrExpression invoked = ((GrMethodCall)parent).getInvokedExp...
collectParameterInfo
29,971
void (@NotNull List<Object> elementToShow, GroovyResolveResult @NotNull [] variants) { for (GroovyResolveResult variant : variants) { final PsiElement element = variant.getElement(); if (element instanceof PsiMethod) { elementToShow.add(variant); } else if (element instanceof GrVariable) { final PsiType type = ((GrVari...
addMethodAndClosureVariants
29,972
void (@NotNull final List<Object> elementToShow, @NotNull GrClosureType type) { elementToShow.addAll(type.getSignatures()); }
addSignatureVariant
29,973
void (List toShow) { Set<GrMethod> methods = new HashSet<>(); for (Iterator iterator = toShow.iterator(); iterator.hasNext(); ) { Object next = iterator.next(); if (next instanceof GroovyResolveResult) { final PsiElement element = ((GroovyResolveResult)next).getElement(); if (element instanceof GrReflectedMethod) { fin...
filterOutReflectedMethods
29,974
boolean (GrExpression invoked) { if (!(invoked instanceof GrReferenceExpression)) return false; final GroovyResolveResult resolveResult = ((GrReferenceExpression)invoked).advancedResolve(); return resolveResult.isInvokedOnProperty() || resolveResult.getElement() instanceof PsiVariable; }
isPropertyOrVariableInvoked
29,975
void (@NotNull GroovyPsiElement place, @NotNull UpdateParameterInfoContext context) { int offset = context.getEditor().getCaretModel().getOffset(); offset = CharArrayUtil.shiftForward(context.getEditor().getDocument().getText(), offset, " \t\n"); final int currIndex = getCurrentParameterIndex(place, offset); context.se...
updateParameterInfo
29,976
int (GroovyPsiElement place, int offset) { if (place instanceof GrArgumentList list) { int idx = (list.getNamedArguments().length > 0) ? 1 : 0; for (PsiElement child = list.getFirstChild(); child != null; child = child.getNextSibling()) { if (child.getTextRange().contains(offset)) { if (child instanceof GrNamedArgument...
getCurrentParameterIndex
29,977
boolean (PsiElement child) { if (!(child instanceof GrNamedArgument)) return false; final PsiElement element = PsiUtil.skipWhitespacesAndComments(child.getPrevSibling(), false); return element != null && element.getNode().getElementType() == GroovyTokenTypes.mCOMMA; }
isNamedArgWithPriorComma
29,978
void (Object o, @NotNull ParameterInfoUIContext context) { CodeInsightSettings settings = CodeInsightSettings.getInstance(); if (o == null) return; Object element; if (o instanceof GroovyResolveResult) { element = ((GroovyResolveResult)o).getElement(); if (element == null || !((PsiElement)element).isValid()) { context....
updateUI
29,979
PsiParameter[] (PsiMethod method, PsiParameter[] params, PsiElement place) { if (GrInnerClassConstructorUtil.isInnerClassConstructorUsedOutsideOfItParent(method, place)) { GrMethod grMethod = (GrMethod)method; params = GrInnerClassConstructorUtil .addEnclosingInstanceParam(grMethod, method.getContainingClass().getConta...
updateConstructorParams
29,980
void (PsiParameter param, PsiSubstitutor substitutor, StringBuilder buffer) { if (param instanceof GrParameter grParam) { GroovyPresentationUtil.appendParameterPresentation(grParam, substitutor, TypePresentation.PRESENTABLE, buffer, false); final GrExpression initializer = grParam.getInitializerGroovy(); if (initialize...
appendParameterText
29,981
IElementType () { return GroovyTokenTypes.mCOMMA; }
getActualParameterDelimiterType
29,982
IElementType () { return GroovyTokenTypes.mRPAREN; }
getActualParametersRBraceType
29,983
Class<GroovyPsiElement> () { return GroovyPsiElement.class; }
getArgumentListClass
29,984
IElementType () { return GroovyTokenTypes.mCOMMA; }
getActualParameterDelimiterType
29,985
IElementType () { return GroovyTokenTypes.mRPAREN; }
getActualParametersRBraceType
29,986
Class<GrAnnotationArgumentList> () { return GrAnnotationArgumentList.class; }
getArgumentListClass
29,987
GrAnnotationArgumentList (@NotNull CreateParameterInfoContext context) { return findAnchor(context.getEditor(), context.getFile()); }
findElementForParameterInfo
29,988
GrAnnotationArgumentList (@NotNull final Editor editor, @NotNull final PsiFile file) { PsiElement element = file.findElementAt(editor.getCaretModel().getOffset()); if (element == null) return null; return PsiTreeUtil.getParentOfType(element, GrAnnotationArgumentList.class); }
findAnchor
29,989
void (@NotNull GrAnnotationArgumentList argumentList, @NotNull CreateParameterInfoContext context) { final GrAnnotation parent = (GrAnnotation)argumentList.getParent(); final PsiElement resolved = parent.getClassReference().resolve(); if (resolved instanceof PsiClass && ((PsiClass)resolved).isAnnotationType()) { final ...
showParameterInfo
29,990
PsiAnnotationMethod (@NotNull PsiFile file, @NotNull Editor editor) { PsiNameValuePair pair = ParameterInfoUtils.findParentOfType(file, inferOffset(editor), PsiNameValuePair.class); if (pair == null) return null; final PsiReference reference = pair.getReference(); final PsiElement resolved = reference != null ? referen...
findAnnotationMethod
29,991
GrAnnotationArgumentList (@NotNull UpdateParameterInfoContext context) { return findAnchor(context.getEditor(), context.getFile()); }
findElementForUpdatingParameterInfo
29,992
void (@NotNull GrAnnotationArgumentList parameterOwner, @NotNull UpdateParameterInfoContext context) { context.setHighlightedParameter(findAnnotationMethod(context.getFile(), context.getEditor())); }
updateParameterInfo
29,993
int (@NotNull final Editor editor) { CharSequence chars = editor.getDocument().getCharsSequence(); int offset1 = CharArrayUtil.shiftForward(chars, editor.getCaretModel().getOffset(), " \t"); final char character = chars.charAt(offset1); if (character == ',' || character == ')') { offset1 = CharArrayUtil.shiftBackward(c...
inferOffset
29,994
void (@NotNull PsiAnnotationMethod p, @NotNull ParameterInfoUIContext context) { @NonNls StringBuilder buffer = new StringBuilder(); final PsiType returnType = p.getReturnType(); assert returnType != null; buffer.append(returnType.getPresentableText()); buffer.append(" "); int highlightStartOffset = buffer.length(); bu...
updateUI
29,995
GroovyDocHighlightingManager () { return INSTANCE; }
getInstance
29,996
TextAttributes (@NotNull TextAttributesKey attributesKey) { return EditorColorsManager.getInstance().getGlobalScheme().getAttributes(attributesKey); }
resolveAttributes
29,997
TextAttributes (@NotNull PsiClass aClass) { if (aClass.isInterface()) return getInterfaceNameAttributes(); if (aClass.isEnum()) return getEnumNameAttributes(); if (aClass instanceof PsiAnonymousClass) return getAnonymousClassNameAttributes(); if (aClass.hasModifierProperty(PsiModifier.ABSTRACT)) return getAbstractClass...
getClassDeclarationAttributes
29,998
TextAttributes (@NotNull PsiMethod method) { return method.isConstructor() ? getConstructorDeclarationAttributes() : getMethodDeclarationAttributes(); }
getMethodDeclarationAttributes
29,999
TextAttributes (@NotNull PsiField field) { boolean isStatic = field.hasModifierProperty(PsiModifier.STATIC); return isStatic ? getStaticFieldAttributes() : getInstanceFieldAttributes(); }
getFieldDeclarationAttributes