Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
73,900 | String () { return JavaBundle.message("please.report.a.bug"); } | getOptionName |
73,901 | boolean (Template template) { return true; } | isEnabled |
73,902 | boolean (@NotNull Template template, @NotNull TemplateContext context) { return false; } | isVisible |
73,903 | void (final Project project, final Template template, final Document document, final RangeMarker templateRange, final Editor editor) { if (!template.isToShortenLongNames()) return; PsiDocumentManager.getInstance(project).commitDocument(document); PsiFile file = PsiUtilBase.getPsiFileInEditor(editor, project); if (file ... | processText |
73,904 | String () { return CodeInsightBundle.message("dialog.edit.template.checkbox.shorten.fq.names"); } | getOptionName |
73,905 | boolean (final Template template) { return template.isToShortenLongNames(); } | isEnabled |
73,906 | void (final Template template, final boolean value) { template.setToShortenLongNames(value); } | setEnabled |
73,907 | void (Project project, Template template, Document document, RangeMarker templateRange, Editor editor) { if (!template.getValue(Template.Property.USE_STATIC_IMPORT_IF_POSSIBLE)) { return; } PsiDocumentManager.getInstance(project).commitDocument(document); final PsiFile file = PsiUtilBase.getPsiFileInEditor(editor, proj... | processText |
73,908 | void (Project project, Editor editor, PsiFile file, List<? extends Pair<PsiElement, StaticImporter>> staticImportTargets) { Collections.reverse(staticImportTargets); for (Pair<PsiElement, StaticImporter> pair : staticImportTargets) { if (pair.first.isValid()) { pair.second.perform(project, file, editor, pair.first); } ... | doStaticImport |
73,909 | String () { return JavaBundle.message("dialog.edit.template.checkbox.use.static.import"); } | getOptionName |
73,910 | boolean (Template template) { return template.getValue(Template.Property.USE_STATIC_IMPORT_IF_POSSIBLE); } | isEnabled |
73,911 | void (Template template, boolean value) { template.setValue(Template.Property.USE_STATIC_IMPORT_IF_POSSIBLE, value); } | setEnabled |
73,912 | boolean (@NotNull Template template, @NotNull TemplateContext context) { for (TemplateContextType contextType : TemplateContextTypes.getAllContextTypes()) { if (!context.isEnabled(contextType)) continue; if (contextType instanceof JavaCodeContextType || contextType instanceof JavaCommentContextType) { return true; } } ... | isVisible |
73,913 | boolean (@NotNull PsiElement element) { return AddSingleMemberStaticImportAction.getStaticImportClass(element) != null; } | canPerform |
73,914 | void (Project project, PsiFile file, Editor editor, PsiElement element) { AddSingleMemberStaticImportAction.invoke(file, element); } | perform |
73,915 | boolean (@NotNull PsiElement element) { return AddOnDemandStaticImportAction.getClassToPerformStaticImport(element) != null; } | canPerform |
73,916 | void (Project project, PsiFile file, Editor editor, PsiElement element) { AddOnDemandStaticImportAction.invoke(project, file, editor, element); } | perform |
73,917 | String (Project project) { return DEFAULT_BLOCKING_ANNOTATION; } | getName |
73,918 | boolean (PsiModifierListOwner owner) { return owner instanceof PsiMethod && !owner.hasAnnotation(DEFAULT_NONBLOCKING_ANNOTATION); } | isAvailable |
73,919 | String (Project project) { return NullableNotNullManager.getInstance(project).getDefaultNotNull(); } | getName |
73,920 | boolean (PsiModifierListOwner owner) { return AddAnnotationPsiFix.isNullabilityAnnotationApplicable(owner); } | isAvailable |
73,921 | String (Project project) { return CommonClassNames.JAVA_LANG_DEPRECATED; } | getName |
73,922 | boolean (PsiModifierListOwner owner) { return true; } | isAvailable |
73,923 | String (Project project) { return Mutability.UNMODIFIABLE_VIEW_ANNOTATION; } | getName |
73,924 | boolean (PsiModifierListOwner owner) { if (!(owner instanceof PsiMethod)) return false; PsiClass returnClass = PsiUtil.resolveClassInClassTypeOnly(((PsiMethod)owner).getReturnType()); return InheritanceUtil.isInheritor(returnClass, CommonClassNames.JAVA_UTIL_COLLECTION) || InheritanceUtil.isInheritor(returnClass, Commo... | isAvailable |
73,925 | String (Project project) { return DEFAULT_NONBLOCKING_ANNOTATION; } | getName |
73,926 | boolean (PsiModifierListOwner owner) { return owner instanceof PsiMethod && !owner.hasAnnotation(DEFAULT_BLOCKING_ANNOTATION); } | isAvailable |
73,927 | String (Project project) { return NullableNotNullManager.getInstance(project).getDefaultNullable(); } | getName |
73,928 | boolean (PsiModifierListOwner owner) { return AddAnnotationPsiFix.isNullabilityAnnotationApplicable(owner); } | isAvailable |
73,929 | String (Project project) { return Mutability.UNMODIFIABLE_ANNOTATION; } | getName |
73,930 | boolean (PsiModifierListOwner owner) { if (!(owner instanceof PsiMethod)) return false; PsiClass returnClass = PsiUtil.resolveClassInClassTypeOnly(((PsiMethod)owner).getReturnType()); return InheritanceUtil.isInheritor(returnClass, CommonClassNames.JAVA_UTIL_COLLECTION) || InheritanceUtil.isInheritor(returnClass, Commo... | isAvailable |
73,931 | String (Project project) { return AnnotationUtil.NON_NLS; } | getName |
73,932 | boolean (PsiModifierListOwner owner) { return owner instanceof PsiMethod && isAssignableFromString(((PsiMethod)owner).getReturnType(), owner) || owner instanceof PsiVariable && isAssignableFromString(((PsiVariable)owner).getType(), owner); } | isAvailable |
73,933 | boolean (PsiType type, PsiElement context) { if (type == null) { return false; } return type.getDeepComponentType().isAssignableFrom(TypeUtils.getStringType(context)); } | isAssignableFromString |
73,934 | String () { return myGroupId; } | getGroupId |
73,935 | String () { return myArtifactId; } | getArtifactId |
73,936 | String () { return myVersion; } | getVersion |
73,937 | Collection<String> () { return Collections.unmodifiableList(myRepositoryUrls); } | getRepositoryUrls |
73,938 | boolean (Object o) { if (this == o) return true; if (!(o instanceof AnnotationsLocation location)) return false; if (!myGroupId.equals(location.myGroupId)) return false; if (!myArtifactId.equals(location.myArtifactId)) return false; if (!myVersion.equals(location.myVersion)) return false; if (!myRepositoryUrls.equals(l... | equals |
73,939 | int () { int result = myGroupId.hashCode(); result = 31 * result + myArtifactId.hashCode(); result = 31 * result + myVersion.hashCode(); result = 31 * result + myRepositoryUrls.hashCode(); return result; } | hashCode |
73,940 | String () { return "[AnnotationLocation '" + myGroupId + ":" + myArtifactId + ":" + myVersion + "'@'" + StringUtil.join(myRepositoryUrls, "; ") + "']"; } | toString |
73,941 | boolean (@NotNull PsiFile file, int lineLength) { final CodeStyleSettings settings = CodeStyle.getSettings(file); return lineLength <= settings.getRightMargin(JavaLanguage.INSTANCE); } | isBelowRightMargin |
73,942 | boolean (@NotNull PsiAnonymousClass anonymousClass, @NotNull PsiNewExpression expression) { PsiElement parent = expression.getParent(); if (parent instanceof PsiReferenceExpression || parent instanceof PsiAssignmentExpression) { return true; } ExpectedTypeInfo[] types = ExpectedTypesProvider.getExpectedTypes(expression... | shouldShowExplicitLambdaType |
73,943 | String () { return getRightArrow(); } | rightArrow |
73,944 | String () { return EditorUtil.displayCharInEditor('\u2192', EditorColors.FOLDED_TEXT_ATTRIBUTES, "->"); } | getRightArrow |
73,945 | String (@NotNull final PsiElement element) { PsiFile file = element.getContainingFile(); if (!(file instanceof PsiJavaFile)) { return null; } if (element instanceof PsiImportList) { if (element.equals(((PsiJavaFile)file).getImportList())) { return "imports"; } else { return null; } } if (element instanceof PsiMethod me... | getSignature |
73,946 | PsiElement (@NotNull PsiFile file, @NotNull PsiElement parent, @NotNull String type, @NotNull StringTokenizer tokenizer, @Nullable StringBuilder processingInfoStorage) { return switch (type) { case "imports" -> file instanceof PsiJavaFile javaFile ? javaFile.getImportList() : null; case "method" -> { String name = toke... | restoreBySignatureTokens |
73,947 | PsiElement (@Nullable PsiElement element) { return PsiTreeUtil.getParentOfType(element, PsiCodeBlock.class); } | findParentBlock |
73,948 | boolean (@Nullable PsiElement element) { return element instanceof PsiJavaToken && ((PsiJavaToken)element).getTokenType() == JavaTokenType.RBRACE; } | isEndBlockToken |
73,949 | JavaCodeFoldingSettingsImpl () { return this; } | getState |
73,950 | void (@NotNull final JavaCodeFoldingSettingsImpl state) { XmlSerializerUtil.copyBean(state, this); } | loadState |
73,951 | TextRange (@NotNull final PsiElement container) { final PsiLambdaExpression lambdaExpression = (PsiLambdaExpression)container; return lambdaExpression.getParameterList().getTextRange(); } | getDeclarationRange |
73,952 | TextRange (@NotNull final PsiElement container) { PsiMethod method = (PsiMethod)container; final TextRange textRange = method.getModifierList().getTextRange(); int startOffset = textRange != null ? textRange.getStartOffset():method.getTextOffset(); int endOffset = method.getThrowsList().getTextRange().getEndOffset(); r... | getDeclarationRange |
73,953 | int (@NotNull final PsiElement parent) { PsiElement element = parent; if (element instanceof PsiDocCommentOwner) { PsiDocComment comment = ((PsiDocCommentOwner)element).getDocComment(); if (comment != null) { element = comment.getNextSibling(); while (element instanceof PsiWhiteSpace) { element = element.getNextSibling... | getTextStartOffset |
73,954 | int (@NotNull PsiElement element) { return element.getTextRange().getEndOffset(); } | getTextEndOffset |
73,955 | String (@NotNull PsiElement element) { return StringUtil.escapeXmlEntities(getTypePresentation(element)); } | getInformationHint |
73,956 | String () { return JavaBundle.message("error.hint.no.expression.found"); } | getErrorHint |
73,957 | PsiLocalVariable (@NotNull PsiElement elementAt) { if (elementAt instanceof PsiIdentifier && elementAt.getParent() instanceof PsiLocalVariable psiVariable && psiVariable.getTypeElement().isInferredType()) { return psiVariable; } if (elementAt instanceof PsiKeyword keyword && keyword.getTokenType() == JavaTokenType.VAR_... | getPossibleLocaleVariable |
73,958 | PsiParameter (@NotNull PsiElement elementAt) { if (elementAt instanceof PsiIdentifier identifier && identifier.getParent() instanceof PsiParameter parameter && (parameter.getTypeElement() == null || parameter.getTypeElement().isInferredType())) { return parameter; } if (elementAt instanceof PsiKeyword keyword && keywor... | getPossibleParameter |
73,959 | List<PsiElement> (@NotNull PsiElement elementAt) { PsiVariable psiVariable = getPossibleLocaleVariable(elementAt); if (psiVariable != null) { PsiTypeElement element = psiVariable.getTypeElement(); if (element.isInferredType() && psiVariable.getInitializer() != null && psiVariable.getNameIdentifier() != null) { return C... | getExpressionsAt |
73,960 | boolean (@NotNull PsiExpression e) { PsiElement p = e.getParent(); if (p instanceof PsiUnaryExpression) return false; if (p instanceof PsiMethodCallExpression && ((PsiMethodCallExpression)p).getMethodExpression() == e) { return false; } return true; } | isLargestNonTrivialExpression |
73,961 | boolean () { return true; } | hasAdvancedInformation |
73,962 | HtmlChunk (@NotNull @Nls String titleText, @Nls String contentText) { HtmlChunk titleCell = HtmlChunk.tag("td").attr("align", "left").attr("valign", "top") .style("color:" + ColorUtil.toHtmlColor(DocumentationComponent.SECTION_COLOR)) .addText(titleText + ":"); HtmlChunk contentCell = HtmlChunk.tag("td").addText(conten... | makeHtmlRow |
73,963 | TextRange (@NotNull final PsiElement container) { PsiClassInitializer initializer = (PsiClassInitializer)container; int startOffset = initializer.getModifierList().getTextRange().getStartOffset(); int endOffset = initializer.getBody().getTextRange().getStartOffset(); return new TextRange(startOffset, endOffset); } | getDeclarationRange |
73,964 | TextRange (@NotNull final PsiElement container) { PsiClass aClass = (PsiClass)container; if (aClass instanceof PsiAnonymousClass){ PsiConstructorCall call = (PsiConstructorCall)aClass.getParent(); int startOffset = call.getTextRange().getStartOffset(); int endOffset = call.getArgumentList().getTextRange().getEndOffset(... | getDeclarationRange |
73,965 | void (@NotNull DataContext dataContext, final boolean invokedByShortcut) { final Project project = CommonDataKeys.PROJECT.getData(dataContext); final PsiFile file = CommonDataKeys.PSI_FILE.getData(dataContext); if (project == null) return; PsiDocumentManager.getInstance(project).commitAllDocuments(); final Editor edito... | performForContext |
73,966 | boolean () { return true; } | isSearchDeep |
73,967 | void (boolean invokedByShortcut, @NotNull Project project, Editor editor, PsiFile file, boolean invokedFromEditor, @NotNull PsiElement element) { final PsiElement[] impls = PsiImplementationViewSession .getSelfAndImplementations(editor, element, PsiImplementationViewSession.createImplementationsSearcher(true), false); ... | showSiblings |
73,968 | boolean () { return false; } | isIncludeAlwaysSelf |
73,969 | PsiAnnotationParameterList (@NotNull final CreateParameterInfoContext context) { final PsiAnnotation annotation = ParameterInfoUtils.findParentOfType(context.getFile(), context.getOffset(), PsiAnnotation.class); if (annotation != null) { PsiClass aClass = annotation.resolveAnnotationType(); if (aClass != null) { final ... | findElementForParameterInfo |
73,970 | void (@NotNull final PsiAnnotationParameterList element, @NotNull final CreateParameterInfoContext context) { context.showHint(element, element.getTextRange().getStartOffset() + 1, this); } | showParameterInfo |
73,971 | PsiAnnotationParameterList (@NotNull final UpdateParameterInfoContext context) { final PsiAnnotation annotation = ParameterInfoUtils.findParentOfType(context.getFile(), context.getOffset(), PsiAnnotation.class); return annotation != null ? annotation.getParameterList() : null; } | findElementForUpdatingParameterInfo |
73,972 | void (@NotNull final PsiAnnotationParameterList parameterOwner, @NotNull final UpdateParameterInfoContext context) { CharSequence chars = context.getEditor().getDocument().getCharsSequence(); int offset1 = CharArrayUtil.shiftForward(chars, context.getEditor().getCaretModel().getOffset(), " \t"); final char c = chars.ch... | updateParameterInfo |
73,973 | void (final PsiAnnotationMethod p, @NotNull final ParameterInfoUIContext context) { updateUIText(p, context); } | updateUI |
73,974 | String (PsiAnnotationMethod p, ParameterInfoUIContext context) { @NonNls StringBuilder buffer = new StringBuilder(); buffer.append(p.getReturnType().getPresentableText()); buffer.append(" "); int highlightStartOffset = buffer.length(); buffer.append(p.getName()); int highlightEndOffset = buffer.length(); buffer.append(... | updateUIText |
73,975 | PsiAnnotationMethod (PsiFile file, int offset) { PsiNameValuePair pair = ParameterInfoUtils.findParentOfType(file, offset, PsiNameValuePair.class); if (pair == null) return null; final PsiReference reference = pair.getReference(); final PsiElement resolved = reference != null ? reference.resolve():null; return PsiUtil.... | findAnnotationMethod |
73,976 | PsiExpressionList (@NotNull final CreateParameterInfoContext context) { PsiExpressionList argumentList = findArgumentList(context.getFile(), context.getOffset(), context.getParameterListStart(), true); if (argumentList != null) { return findMethodsForArgumentList(context, argumentList); } return null; } | findElementForParameterInfo |
73,977 | PsiExpressionList (final PsiFile file, int offset, int parameterStart, boolean allowOuter) { PsiExpressionList argumentList = ParameterInfoUtils.findArgumentList(file, offset, parameterStart, this, allowOuter); if (argumentList == null && allowOuter) { PsiCall call = ParameterInfoUtils.findParentOfTypeWithStopElements(... | findArgumentList |
73,978 | PsiExpressionList (final CreateParameterInfoContext context, @NotNull final PsiExpressionList argumentList) { CandidateInfo[] candidates = getMethods(argumentList); if (candidates.length == 0) { return null; } PsiMethod method = argumentList.getParent() instanceof PsiCall call ? call.resolveMethod() : null; CandidateWi... | findMethodsForArgumentList |
73,979 | void (@NotNull final PsiExpressionList element, @NotNull final CreateParameterInfoContext context) { int offset = element.getTextRange().getStartOffset(); if (CodeInsightSettings.getInstance().SHOW_PARAMETER_NAME_HINTS_ON_COMPLETION) { ParameterInfoControllerBase controller = ParameterInfoControllerBase.findControllerA... | showParameterInfo |
73,980 | PsiExpressionList (@NotNull final UpdateParameterInfoContext context) { if (context.isPreservedOnHintHidden() && isOutsideOfCompletedInvocation(context)) { context.setPreservedOnHintHidden(false); return null; } PsiExpressionList expressionList = findArgumentList(context.getFile(), context.getOffset(), context.getParam... | findElementForUpdatingParameterInfo |
73,981 | void (@Nullable PsiExpressionList expressionList, @NotNull UpdateParameterInfoContext context) { if (expressionList != null) { Object[] candidates = context.getObjectsToView(); if (candidates != null && candidates.length != 0) { PsiElement parent = expressionList.getParent(); int currentNumberOfParameters = expressionL... | processFoundElementForUpdatingParameterInfo |
73,982 | boolean (UpdateParameterInfoContext context) { PsiElement owner = context.getParameterOwner(); if (owner != null && owner.isValid()) { TextRange ownerTextRange = getRelatedRange(owner, context.getEditor()); int caretOffset = context.getOffset(); if (ownerTextRange != null) { if (caretOffset >= ownerTextRange.getStartOf... | isOutsideOfCompletedInvocation |
73,983 | TextRange (PsiElement owner, Editor editor) { TextRange range = owner.getTextRange(); if (range == null) return null; Document document = editor.getDocument(); if (!Registry.is("editor.keep.completion.hints.longer")) return range; return new TextRange(DocumentUtil.getLineStartOffset(range.getStartOffset(), document), D... | getRelatedRange |
73,984 | boolean (PsiMethod method, Object[] candidates) { String methodName = method.getName(); return ContainerUtil.find(candidates, c -> { PsiMethod m = getMethodFromCandidate(c); return m.getParameterList().isEmpty() && m.getName().equals(methodName); }) != null; } | overloadWithNoParametersExists |
73,985 | boolean (@NotNull PsiMethod method, int numberOfParameters) { int limit = JavaMethodCallElement.getCompletionHintsLimit(); int originalNumberOfParameters = method.getParameterList().getParametersCount(); return Registry.is("editor.completion.hints.virtual.comma") ? !PsiImplUtil.isVarArgs(method) && numberOfParameters >... | isIncompatibleParameterCount |
73,986 | void (@NotNull final PsiExpressionList o, @NotNull final UpdateParameterInfoContext context) { int offset = context.getOffset(); TextRange elRange = o.getTextRange(); int index = offset <= elRange.getStartOffset() || offset >= elRange.getEndOffset() ? -1 : ParameterInfoUtils.getCurrentParameterIndex(o.getNode(), offset... | updateParameterInfo |
73,987 | void (@NotNull Editor editor, @Nullable PsiExpressionList expressionList, int currentHintIndex, @NotNull UserDataHolder context) { if (editor.isDisposed() || editor instanceof EditorWindow) return; ParameterHintsPresentationManager presentationManager = ParameterHintsPresentationManager.getInstance(); Promise<Highlight... | asyncHighlightHints |
73,988 | HighlightedInlays (Editor editor, int currentHintIndex, ParameterHintsPresentationManager presentationManager, int expressionCount, SmartPsiElementPointer<PsiExpressionList> exprListPtr) { PsiExpressionList expressionList = exprListPtr.getElement(); if (expressionList == null || editor.isDisposed()) return new Highligh... | collectInlaysToHighlight |
73,989 | record (Inlay<?> currentHint, List<Inlay<?>> highlightedHints) { } | HighlightedInlays |
73,990 | void (@NotNull UserDataHolder context) { ParameterHintsPresentationManager presentationManager = ParameterHintsPresentationManager.getInstance(); Inlay<?> currentHint = context.getUserData(CURRENT_HINT); if (currentHint != null) { presentationManager.setCurrent(currentHint, false); context.putUserData(CURRENT_HINT, nul... | resetHints |
73,991 | void (@NotNull DeleteParameterInfoContext context) { Editor editor = context.getEditor(); if (!(editor instanceof EditorWindow) && CodeInsightSettings.getInstance().SHOW_PARAMETER_NAME_HINTS_ON_COMPLETION) { resetHints(context.getCustomContext()); PsiElement parameterOwner = context.getParameterOwner(); if (!editor.isD... | dispose |
73,992 | PsiSubstitutor (CandidateInfo candidate, boolean resolveResult) { return candidate instanceof MethodCandidateInfo && ((MethodCandidateInfo)candidate).isInferencePossible() ? ((MethodCandidateInfo)candidate) .inferTypeArguments(resolveResult ? DefaultParameterTypeInferencePolicy.INSTANCE : CompletionParameterTypeInferen... | getCandidateInfoSubstitutor |
73,993 | boolean (final PsiParameter[] parms, final PsiExpression[] args, int length, PsiSubstitutor substitutor) { for (int j = 0; j < length; j++) { PsiParameter parm = parms[j]; PsiExpression arg = args[j]; assert parm.isValid(); assert arg.isValid(); PsiType parmType = parm.getType(); PsiType argType = arg.getType(); if (ar... | isAssignableParametersBeforeGivenIndex |
73,994 | Class<PsiExpressionList> () { return PsiExpressionList.class; } | getArgumentListClass |
73,995 | IElementType () { return JavaTokenType.RBRACE; } | getActualParametersRBraceType |
73,996 | IElementType () { return JavaTokenType.COMMA; } | getActualParameterDelimiterType |
73,997 | PsiCall (PsiExpressionList list) { PsiElement listParent = list.getParent(); if (listParent instanceof PsiMethodCallExpression) { return (PsiCall)listParent; } if (listParent instanceof PsiNewExpression) { return (PsiCall)listParent; } if (listParent instanceof PsiAnonymousClass) { return (PsiCall)listParent.getParent(... | getCall |
73,998 | CandidateInfo[] (PsiExpressionList argList) { final PsiCall call = getCall(argList); PsiResolveHelper helper = JavaPsiFacade.getInstance(argList.getProject()).getResolveHelper(); if (call instanceof PsiCallExpression) { CandidateInfo[] candidates = getCandidates((PsiCallExpression)call); ArrayList<CandidateInfo> result... | getMethods |
73,999 | CandidateInfo[] (PsiCallExpression call) { final MethodCandidatesProcessor processor = new MethodResolverProcessor(call, call.getContainingFile(), new PsiConflictResolver[0]) { @Override protected boolean acceptVarargs() { return false; } }; try { PsiScopesUtil.setupAndRunProcessor(processor, call, true); } catch (Meth... | getCandidates |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.