Unnamed: 0
int64
0
305k
body
stringlengths
7
52.9k
name
stringlengths
1
185
76,300
void () { for (PsiVariable var : getVariablesToFix()) { makeArray(var, myContext); } }
makeArray
76,301
Collection<PsiVariable> () { Map<PsiVariable, Boolean> vars = myContext.getUserData(VARS[myFixType]); if (vars == null) { vars = ((UserDataHolderEx)myContext).putUserDataIfAbsent(VARS[myFixType], ContainerUtil.createConcurrentWeakMap()); } final Map<PsiVariable, Boolean> finalVars = vars; return new AbstractCollection<...
getVariablesToFix
76,302
boolean (PsiVariable psiVariable) { return finalVars.put(psiVariable, Boolean.TRUE) == null; }
add
76,303
Iterator<PsiVariable> () { return finalVars.keySet().iterator(); }
iterator
76,304
int () { return finalVars.size(); }
size
76,305
void () { for (PsiVariable var : getVariablesToFix()) { if (var.isValid()) { PsiUtil.setModifierProperty(var, PsiModifier.FINAL, true); } } }
makeFinal
76,306
PsiElement (PsiVariable variable, PsiElement context) { PsiElement declarationScope = variable instanceof PsiParameter ? ((PsiParameter)variable).getDeclarationScope() : PsiUtil.getVariableCodeBlock(variable, null); if (declarationScope == null) return null; PsiElement statement = context; nextInnerClass: do { statemen...
getStatementToInsertBefore
76,307
String (Project project, PsiVariable variable) { // new name should not conflict with another variable at the variable declaration level and usage level String name = variable.getName(); // trim last digit to suggest variable names like i1,i2, i3... if (name.length() > 1 && Character.isDigit(name.charAt(name.length()-1...
suggestNewName
76,308
void (PsiElement context, final PsiVariable variable, final PsiElement newExpression) { context.accept(new JavaRecursiveElementVisitor() { @Override public void visitReferenceExpression(@NotNull PsiReferenceExpression expression) { if (expression.resolve() == variable) try { expression.replace(newExpression); } catch (...
replaceReferences
76,309
void (PsiElement context, final PsiVariable variable, final List<? super PsiReferenceExpression> references) { context.accept(new JavaRecursiveElementWalkingVisitor() { @Override public void visitReferenceExpression(@NotNull PsiReferenceExpression expression) { if (expression.resolve() == variable) references.add(expre...
collectReferences
76,310
int (@NotNull PsiVariable variable) { PsiElement outerCodeBlock = PsiUtil.getVariableCodeBlock(variable, null); if (outerCodeBlock == null) return UNKNOWN; List<PsiReferenceExpression> outerReferences = new ArrayList<>(); collectReferences(outerCodeBlock, variable, outerReferences); @FixType int type = MAKE_FINAL; for ...
getQuickFixType
76,311
boolean (@NotNull PsiVariable variable, @NotNull List<? extends PsiReferenceExpression> references) { // if there is at least one assignment to this variable, it cannot be final Map<PsiElement, Collection<PsiReferenceExpression>> uninitializedVarProblems = new HashMap<>(); Map<PsiElement, Collection<ControlFlowUtil.Var...
canBeFinal
76,312
boolean (@NotNull PsiVariable variable, @NotNull PsiElement element) { if (element instanceof PsiAssignmentExpression assignmentExpression) { PsiExpression lExpression = assignmentExpression.getLExpression(); if (lExpression instanceof PsiReferenceExpression ref && ref.resolve() == variable) return true; } else if (Psi...
writtenInside
76,313
boolean () { return true; }
startInWriteAction
76,314
void (@NotNull PsiVariable variable, @NotNull PsiElement context) { @FixType int type = getQuickFixType(variable); if (type == UNKNOWN) return; switch (type) { case MAKE_FINAL -> PsiUtil.setModifierProperty(variable, PsiModifier.FINAL, true); case MAKE_ARRAY -> makeArray(variable, context); case COPY_TO_FINAL -> copyTo...
fixAccess
76,315
String () { if (myLibraries.size() == 1) { return QuickFixBundle.message("orderEntry.fix.add.library.to.classpath", ContainerUtil.getFirstItem(myLibraries.keySet()).getPresentableName()); } return QuickFixBundle.message("orderEntry.fix.family.add.library.to.classpath.options"); }
getText
76,316
String () { return QuickFixBundle.message("orderEntry.fix.family.add.library.to.classpath"); }
getFamilyName
76,317
boolean (@NotNull Project project, Editor editor, PsiFile file) { return !project.isDisposed() && !myCurrentModule.isDisposed() && !myLibraries.isEmpty() && !ContainerUtil.exists(myLibraries.keySet(), l -> ((LibraryEx)l).isDisposed()); }
isAvailable
76,318
void (@NotNull Project project, @Nullable Editor editor, PsiFile file) { if (myLibraries.size() == 1) { addLibrary(project, editor, ContainerUtil.getFirstItem(myLibraries.keySet())); } else { JBPopup popup = JBPopupFactory.getInstance() .createPopupChooserBuilder(new ArrayList<>(myLibraries.keySet())) .setRenderer(new ...
invoke
76,319
void (@NotNull JList<? extends Library> list, Library lib, int index, boolean selected, boolean hasFocus) { if (lib != null) { setText(lib.getPresentableName()); setIcon(AllIcons.Nodes.PpLib); } }
customize
76,320
void (@NotNull Project project, @Nullable Editor editor, Library library) { ModalityState modality = ModalityState.defaultModalityState(); JavaProjectModelModificationService.getInstance(project) .addDependency(myCurrentModule, library, myScope, myExported) .onSuccess(__ -> { if (editor == null) return; ReadAction.nonB...
addLibrary
76,321
IntentionPreviewInfo (@NotNull Project project, @NotNull Editor editor, @NotNull PsiFile file) { Library firstItem = ContainerUtil.getFirstItem(myLibraries.keySet()); String fqName = myLibraries.get(firstItem); String refName = !StringUtil.isEmpty(fqName) ? StringUtil.getShortName(fqName) : null; String libraryList = N...
generatePreview
76,322
String () { return QuickFixBundle.message("change.to.append.family"); }
getFamilyName
76,323
void (@NotNull ActionContext context, @NotNull PsiAssignmentExpression assignmentExpression, @NotNull ModPsiUpdater updater) { final PsiExpression appendExpression = ChangeToAppendUtil.buildAppendExpression(assignmentExpression.getLExpression(), assignmentExpression.getRExpression()); if (appendExpression == null) retu...
invoke
76,324
TypeInfo () { if (myTypeInfo != null) return myTypeInfo; myTypeInfo = calculateTypeInfo(); return myTypeInfo; }
getTypeInfo
76,325
TypeInfo () { if (myLhsType.equalsToText(CommonClassNames.JAVA_LANG_STRING_BUILDER) || myLhsType.equalsToText(CommonClassNames.JAVA_LANG_STRING_BUFFER)) { return new TypeInfo(true, false); } if (InheritanceUtil.isInheritor(myLhsType, "java.lang.Appendable")) { return new TypeInfo(true, true); } return new TypeInfo(fals...
calculateTypeInfo
76,326
record (boolean appendable, boolean useStringValueOf) { }
TypeInfo
76,327
String () { return IdeBundle.message("quickfix.text.insert.0", myToken); }
getFamilyName
76,328
ModCommand (@NotNull ActionContext context) { return ModCommand.psiUpdate(context.file(), f -> f.getViewProvider().getDocument().insertString(context.offset(), myToken)); }
perform
76,329
String () { return QuickFixBundle.message("surround.with.try.catch.fix"); }
getFamilyName
76,330
ModCommand (@NotNull ActionContext context) { return ModCommand.psiUpdate(myElement, (element, updater) -> invoke(context.project(), element, updater)); }
perform
76,331
void (@NotNull Project project, @NotNull PsiElement element, @NotNull ModPsiUpdater updater) { if (element instanceof PsiExpression expression) { CodeBlockSurrounder surrounder = CodeBlockSurrounder.forExpression(ExpressionUtils.getTopLevelExpression(expression)); if (surrounder == null) return; element = surrounder.su...
invoke
76,332
boolean (@NotNull Project project, @NotNull PsiFile file, @NotNull PsiElement startElement, @NotNull PsiElement endElement) { if (startElement instanceof PsiNewExpression) { final PsiElementFactory elementFactory = JavaPsiFacade.getElementFactory(project); String startElementText = startElement.getText(); try { PsiNewE...
isAvailable
76,333
void (@NotNull final Project project, @NotNull PsiFile file, @Nullable final Editor editor, @NotNull final PsiElement startElement, @NotNull PsiElement endElement) { if (editor == null) return; PsiJavaCodeReferenceElement classReference = ((PsiNewExpression)startElement).getClassReference(); if (classReference == null)...
invoke
76,334
IntentionPreviewInfo (@NotNull Project project, @NotNull Editor editor, @NotNull PsiFile file) { PsiElement startElement = getStartElement(); if (!(startElement instanceof PsiNewExpression newExpression)) { return IntentionPreviewInfo.EMPTY; } if (startElement.getContainingFile() != file.getOriginalFile()) { return Int...
generatePreview
76,335
void (@NotNull Project project, @NotNull Editor editor, @NotNull PsiElement startElement, List<PsiMethodMember> selectedElements, OverrideOrImplementOptions options) { PsiNewExpression newExpression = (PsiNewExpression)JavaPsiFacade.getElementFactory(project).createExpressionFromText(startElement.getText() + "{}", star...
implementNewMethods
76,336
void (@NotNull PsiJavaCodeReferenceElement referenceElement) { referenceElement = findTopmostReference(referenceElement); PsiElement parent = referenceElement.getParent(); if (parent != null && referenceElement.isQualified()) { PsiProvidesStatement providesStatement = ObjectUtils.tryCast(parent.getParent(), PsiProvides...
init
76,337
String () { return QuickFixBundle.message("create.service.implementation.fix.name", myImplementationClassName); }
getText
76,338
String () { return QuickFixBundle.message("create.service.implementation.fix.family.name"); }
getFamilyName
76,339
boolean (@NotNull Project project, Editor editor, PsiFile file) { if (mySuperClassName != null && myImplementationClassName != null && myModuleName != null) { JavaPsiFacade psiFacade = JavaPsiFacade.getInstance(project); GlobalSearchScope projectScope = GlobalSearchScope.projectScope(project); return psiFacade.findClas...
isAvailable
76,340
PsiClass (@NotNull PsiDirectory psiRootDir, boolean isSubclass, @NotNull PsiElement contextElement) { Project project = psiRootDir.getProject(); PsiClass psiImplClass = createClassInRoot(myImplementationClassName, CreateClassKind.CLASS, psiRootDir, contextElement, isSubclass ? mySuperClassName : null); if (psiImplClass...
createClassInRoot
76,341
IntentionPreviewInfo (@NotNull Project project, @NotNull Editor editor, @NotNull PsiFile file) { String superClassName = StringUtil.getShortName(mySuperClassName); return new IntentionPreviewInfo.CustomDiff(JavaFileType.INSTANCE, "", "public class " + StringUtil.getShortName(myImplementationClassName) + " " + (myInterf...
generatePreview
76,342
PsiClass (@NotNull String className, @NotNull Module module) { Project project = module.getProject(); ModulesScope scope = new ModulesScope(Collections.singleton(module), project); return JavaPsiFacade.getInstance(project).findClass(className, scope); }
findClassInModule
76,343
void (String qualifierText, PsiClass outerClass) { String name = myImplementationClassName.substring(qualifierText.length() + 1); PsiClass psiClass = WriteAction.compute(() -> createClassInOuterImpl(name, outerClass, mySuperClassName)); positionCursor(psiClass); }
createClassInOuter
76,344
JComponent () { return null; }
createCenterPanel
76,345
JComponent () { PanelGridBuilder builder = UI.PanelFactory.grid(); builder.add(UI.PanelFactory.panel(mySubclassButton).withLabel(JavaBundle.message("label.implementation"))) .add(UI.PanelFactory.panel(myProviderButton)); if (myRootDirCombo.getModel().getSize() > 1) { builder.add(UI.PanelFactory.panel(myRootDirCombo).wi...
createNorthPanel
76,346
JComponent () { return mySubclassButton; }
getPreferredFocusedComponent
76,347
PsiDirectory () { return (PsiDirectory)myRootDirCombo.getSelectedItem(); }
getRootDir
76,348
boolean () { return mySubclassButton.isSelected(); }
isSubclass
76,349
String () { return CommonQuickFixBundle.message("fix.remove.title.x", JavaElementKind.PARAMETER.object(), myName); }
getText
76,350
String () { return QuickFixBundle.message("remove.unused.element.family", JavaElementKind.PARAMETER.object()); }
getFamilyName
76,351
boolean (@NotNull Project project, @NotNull PsiFile file, @NotNull PsiElement startElement, @NotNull PsiElement endElement) { final PsiParameter myParameter = (PsiParameter)startElement; return myParameter.getDeclarationScope() instanceof PsiMethod && BaseIntentionAction.canModify(myParameter); }
isAvailable
76,352
void (@NotNull Project project, @NotNull PsiFile file, @Nullable Editor editor, @NotNull PsiElement startElement, @NotNull PsiElement endElement) { final PsiParameter myParameter = (PsiParameter)startElement; if (!FileModificationService.getInstance().prepareFileForWrite(myParameter.getContainingFile())) return; remove...
invoke
76,353
IntentionPreviewInfo (@NotNull Project project, @NotNull Editor editor, @NotNull PsiFile file) { final PsiParameter myParameter = (PsiParameter)getStartElement(); PsiMethod psiMethod = PsiTreeUtil.getParentOfType(myParameter, PsiMethod.class); if (psiMethod == null) { return IntentionPreviewInfo.EMPTY; } if (!(PsiTreeU...
generatePreview
76,354
String (@NotNull PsiMethod method) { StringBuilder builder = new StringBuilder(); PsiCodeBlock body = method.getBody(); for (PsiElement child : method.getChildren()) { if (child == body) { break; } builder.append(child.getText()); } return builder.toString(); }
getMethodDescription
76,355
void (PsiParameter parameter) { PsiMethod method = (PsiMethod)parameter.getDeclarationScope(); var processor = JavaRefactoringFactory.getInstance(parameter.getProject()) .createChangeSignatureProcessor(method, false, null, method.getName(), method.getReturnType(), ParameterInfoImpl.fromMethodExceptParameter(method, par...
removeReferences
76,356
boolean () { return false; }
startInWriteAction
76,357
String () { return QuickFixBundle.message("add.method.qualifier.fix.family"); }
getFamilyName
76,358
List<PsiVariable> (@NotNull PsiMethodCallExpression methodCallElement, @NotNull SearchMode mode) { String methodName = methodCallElement.getMethodExpression().getReferenceName(); if (methodName == null) { return Collections.emptyList(); } List<PsiVariable> candidates = new ArrayList<>(); for (PsiVariable var : CreateFr...
findCandidates
76,359
ModCommand (@NotNull ActionContext context, @NotNull PsiMethodCallExpression element) { List<PsiVariable> candidates = findCandidates(element, IntentionPreviewUtils.isIntentionPreviewActive() ? SearchMode.MAX_2_CANDIDATES : SearchMode.FULL_SEARCH); SmartPsiElementPointer<PsiMethodCallExpression> pointer = SmartPointerM...
perform
76,360
ModCommandAction (PsiVariable candidate, SmartPsiElementPointer<PsiMethodCallExpression> pointer) { return ModCommand.psiUpdateStep( candidate, requireNonNullElse(candidate.getName(), ""), (var, updater) -> { PsiMethodCallExpression call = updater.getWritable(pointer.getElement()); if (call == null) return; replaceWith...
createAction
76,361
void (@NotNull PsiVariable qualifier, @NotNull PsiMethodCallExpression oldExpression) { String qualifierPresentableText = qualifier.getName(); PsiElementFactory elementFactory = JavaPsiFacade.getElementFactory(qualifier.getProject()); PsiMethodCallExpression expression = (PsiMethodCallExpression)elementFactory .createE...
replaceWithQualifier
76,362
void (PsiElement element) { myBodyElements.addAll(myPendingWhiteSpace); myPendingWhiteSpace.clear(); myBodyElements.add(element); }
addElement
76,363
Set<PsiElement> () { return Collections.unmodifiableSet(myPendingDeclarations); }
getPendingDeclarations
76,364
void (@NotNull ActionContext context, @NotNull PsiNameValuePair pair, @NotNull ModPsiUpdater updater) { PsiAnnotationParameterList parameterList = (PsiAnnotationParameterList)pair.getParent(); PsiNameValuePair[] attributes = parameterList.getAttributes(); List<String> strings = new ArrayList<>(); String name = pair.get...
invoke
76,365
String () { return QuickFixBundle.message("merge.duplicate.attributes.family"); }
getFamilyName
76,366
Presentation (@NotNull ActionContext context, @NotNull PsiReturnStatement element) { String toDelete = myIsLastStatement ? "statement" : "value"; String message = QuickFixBundle.message(myHasSideEffects ? "delete.return.fix.side.effects.text" : "delete.return.fix.text", toDelete); return Presentation.of(message); }
getPresentation
76,367
String () { return QuickFixBundle.message("delete.return.fix.family"); }
getFamilyName
76,368
void (@NotNull ActionContext context, @NotNull PsiReturnStatement returnStatement, @NotNull ModPsiUpdater updater) { PsiExpression returnValue = returnStatement.getReturnValue(); if (returnValue == null) return; CommentTracker ct = new CommentTracker(); if (myHasSideEffects) { returnValue = Objects.requireNonNull(CodeB...
invoke
76,369
String () { return QuickFixBundle.message("surround.with.array.initialization"); }
getFamilyName
76,370
PsiExpression (PsiElement element) { if (myMethodCall == null || !myMethodCall.isValid()) { return myExpression == null || !myExpression.isValid() ? null : myExpression; } if (element == null) return null; final PsiMethod method = myMethodCall.resolveMethod(); if (method != null) { return checkMethod(element, method); ...
getExpression
76,371
PsiExpression (final PsiElement element, final PsiMethod psiMethod) { final PsiParameter[] psiParameters = psiMethod.getParameterList().getParameters(); final PsiExpressionList argumentList = myMethodCall.getArgumentList(); int idx = 0; for (PsiExpression expression : argumentList.getExpressions()) { if (element != nul...
checkMethod
76,372
ModCommand (@NotNull ActionContext context) { Project project = context.project(); PsiElement element = context.findLeaf(); final PsiElementFactory elementFactory = JavaPsiFacade.getElementFactory(project); final PsiExpression expression = getExpression(element); assert expression != null; final PsiExpression toReplace...
perform
76,373
String (@NotNull PsiExpression expression, boolean boxing) { final PsiType expressionType = expression.getType(); assert expressionType != null; final PsiType arrayComponentType = TypeConversionUtil.erasure(expressionType); final String typeText = boxing ? ((PsiPrimitiveType)arrayComponentType).getBoxedTypeName() : arr...
getArrayCreation
76,374
boolean (@NotNull PsiLocalVariable var) { PsiExpression initializer = var.getInitializer(); Branched branched = extractInitMode(var); // Do not add too many branches return branched != null && branched.numberOfNonInitializedBranches() <= 3 && canReorder(initializer, branched); }
isAvailable
76,375
void (@NotNull PsiLocalVariable var) { PsiExpression initializer = Objects.requireNonNull(var.getInitializer()); Branched branched = Objects.requireNonNull(extractInitMode(var)); PsiStatement statement = JavaPsiFacade.getElementFactory(var.getProject()) .createStatementFromText(var.getName() + "=" + initializer.getText...
fix
76,376
String (@NotNull PsiLocalVariable var) { return JavaBundle.message("intention.make.final.fixer.if", var.getName()); }
getText
76,377
boolean (PsiExpression initializer, Branched branched) { if (ExpressionUtils.isSafelyRecomputableExpression(initializer) && !refersToNonFinalLocal(initializer)) return true; if (SideEffectChecker.mayHaveSideEffects(initializer)) return false; PsiIfStatement ifStatement = branched.ifStatement(); PsiDeclarationStatement ...
canReorder
76,378
boolean (PsiExpression initializer) { if (initializer instanceof PsiReferenceExpression ref && ref.resolve() instanceof PsiVariable refTarget) { if (PsiUtil.isJvmLocalVariable(refTarget) && !refTarget.hasModifierProperty(PsiModifier.FINAL)) { PsiElement block = PsiUtil.getVariableCodeBlock(refTarget, null); return bloc...
refersToNonFinalLocal
76,379
Branched (@NotNull PsiLocalVariable var) { List<PsiExpressionStatement> initializers = initializers(var); if (initializers.isEmpty()) return null; if (!(var.getParent() instanceof PsiDeclarationStatement decl)) return null; if (!(decl.getParent() instanceof PsiCodeBlock block)) return null; PsiElement commonParent = Ps...
extractInitMode
76,380
PsiIfStatement (PsiCodeBlock block, PsiElement commonParent) { while (true) { PsiIfStatement ifStatement = PsiTreeUtil.getNonStrictParentOfType(commonParent, PsiIfStatement.class); if (ifStatement == null) return null; PsiElement parent = ifStatement.getParent(); if (parent == block) return ifStatement; commonParent = ...
getTopLevelIfStatement
76,381
List<PsiExpressionStatement> (@NotNull PsiLocalVariable var) { PsiElement block = PsiUtil.getVariableCodeBlock(var, null); if (block == null) return List.of(); List<PsiReferenceExpression> references = VariableAccessUtils.getVariableReferences(var, block); List<PsiExpressionStatement> initializers = new ArrayList<>(); ...
initializers
76,382
InitMode (@NotNull PsiStatement statement, @NotNull InitMode origMode) { if (statement.getParent() instanceof PsiCodeBlock codeBlock && codeBlock.getParent() instanceof PsiBlockStatement block) { statement = block; } if (statement.getParent() instanceof PsiIfStatement ifStatement) { if (ifStatement.getThenBranch() == s...
fromInitializer
76,383
InitMode (@NotNull PsiExpressionStatement statement, @NotNull PsiIfStatement topStatement) { PsiStatement current = statement; InitMode curMode = ExactMode.INITIALIZED; while (current != topStatement) { curMode = fromInitializer(current, curMode); if (curMode instanceof Branched branched) { current = branched.ifStateme...
create
76,384
InitMode (@NotNull InitMode nextMode) { if (nextMode == NOT_INITIALIZED) return this; if (this == BOTTOM || this == INITIALIZED) return BOTTOM; return nextMode; }
join
76,385
int () { return this == NOT_INITIALIZED ? 1 : 0; }
numberOfNonInitializedBranches
76,386
InitMode (@NotNull InitMode nextMode) { if (nextMode == ExactMode.NOT_INITIALIZED) return this; if (!(nextMode instanceof Branched branched)) return ExactMode.BOTTOM; if (ifStatement() != branched.ifStatement()) return ExactMode.BOTTOM; InitMode newThen = thenBranch().join(branched.thenBranch()); InitMode newElse = els...
join
76,387
StreamEx<PsiExpression> () { return StreamEx.ofNullable(ifStatement.getCondition()).append(thenBranch().conditions()) .append(elseBranch().conditions()); }
conditions
76,388
int () { return thenBranch().numberOfNonInitializedBranches() + elseBranch().numberOfNonInitializedBranches(); }
numberOfNonInitializedBranches
76,389
void (@NotNull ActionContext context, @NotNull PsiLocalVariable local, @NotNull ModPsiUpdater updater) { myFixer.fix(local); }
invoke
76,390
String () { return JavaAnalysisBundle.message("intention.name.make.variable.effectively.final"); }
getFamilyName
76,391
void (@NotNull PsiJavaCodeReferenceElement ref, @NotNull QuickFixActionRegistrar registrar) { if (!HighlightingFeature.SEALED_CLASSES.isAvailable(ref) && ref.textMatches(PsiKeyword.SEALED)) { ArrayList<IntentionAction> intentions = new ArrayList<>(); registerIncreaseLanguageLevelFixes(ref, HighlightingFeature.SEALED_CL...
registerFixes
76,392
Class<PsiJavaCodeReferenceElement> () { return PsiJavaCodeReferenceElement.class; }
getReferenceClass
76,393
String () { return JavaBundle.message("intention.name.upgrade.jdk.to", myLevel.toJavaVersion().feature); }
getText
76,394
String () { return JavaBundle.message("intention.family.name.upgrade.jdk"); }
getFamilyName
76,395
boolean (@NotNull Project project, Editor editor, PsiFile file) { Module module = ModuleUtilCore.findModuleForFile(file); return module != null && !JavaSdkUtil.isLanguageLevelAcceptable(project, module, myLevel); }
isAvailable
76,396
PsiElement (@NotNull PsiFile file) { return null; }
getElementToMakeWritable
76,397
boolean () { return false; }
startInWriteAction
76,398
void (@NotNull PsiErrorElement errorElement, @NotNull HighlightInfo.Builder info) { PsiElement parent = errorElement.getParent(); String description = errorElement.getErrorDescription(); List<IntentionAction> registrar = new ArrayList<>(); if (parent instanceof PsiStatement && description.equals(JavaPsiBundle.message("...
registerErrorQuickFix
76,399
void (@NotNull PsiJavaCodeReferenceElement ref, @NotNull QuickFixActionRegistrar registrar) { PsiTypeElement typeElement = ObjectUtils.tryCast(ref.getParent(), PsiTypeElement.class); if (typeElement == null || typeElement.getFirstChild() != typeElement.getLastChild()) return; PsiElement parent = typeElement.getParent()...
registerFixes