Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
76,200 | boolean (PsiElement e, PsiExpression subExpression) { return e instanceof PsiInstanceOfExpression && !ContainerUtil.exists(JavaPsiPatternUtil.getExposedPatternVariables(((PsiInstanceOfExpression)e)), var -> PatternResolveState.fromBoolean(mySubExpressionValue) .equals(PatternResolveState.stateAtParent(var, subExpressio... | shouldIgnore |
76,201 | boolean (PsiExpression subExpression) { if (CodeBlockSurrounder.canSurround(subExpression)) return true; if (!mySubExpressionValue) { PsiElement parent = PsiUtil.skipParenthesizedExprUp(subExpression.getParent()); if (parent instanceof PsiWhileStatement || parent instanceof PsiForStatement) return true; // code like "i... | canExtractSideEffect |
76,202 | String () { return getFamilyNameText(); } | getFamilyName |
76,203 | boolean (@NotNull PsiExpression expression) { if (PsiUtil.isAccessedForWriting(expression)) return false; PsiElement element = PsiUtil.skipParenthesizedExprUp(expression); PsiElement parent = element == null ? null : element.getParent(); if (parent instanceof PsiDoWhileStatement && containsBreakOrContinue((PsiDoWhileSt... | isAvailable |
76,204 | boolean (PsiDoWhileStatement doWhileLoop) { return SyntaxTraverser.psiTraverser(doWhileLoop).filter(e -> isBreakOrContinue(e, doWhileLoop)).iterator().hasNext(); } | containsBreakOrContinue |
76,205 | boolean (PsiElement e, PsiDoWhileStatement doWhileLoop) { return e instanceof PsiBreakStatement && doWhileLoop == ((PsiBreakStatement)e).findExitedStatement() || e instanceof PsiContinueStatement && doWhileLoop == ((PsiContinueStatement)e).findContinuedStatement(); } | isBreakOrContinue |
76,206 | void (@NotNull PsiExpression expression, boolean value) { SimplifyBooleanExpressionFix fix = new SimplifyBooleanExpressionFix(expression, value); if (fix.isAvailable(expression)) { fix.invoke(expression); } } | trySimplify |
76,207 | void (@NotNull ActionContext context, @NotNull PsiExpression subExpression, @NotNull ModPsiUpdater updater) { invoke(subExpression); } | invoke |
76,208 | void (@NotNull PsiExpression subExpression) { CommentTracker ct = new CommentTracker(); if (SideEffectChecker.mayHaveSideEffects(subExpression) && canExtractSideEffect(subExpression)) { PsiExpression orig = subExpression; subExpression = ensureCodeBlock(subExpression.getProject(), subExpression); if (subExpression == n... | invoke |
76,209 | PsiExpression (@NotNull Project project, PsiExpression subExpression) { if (!mySubExpressionValue) { // Prevent extracting while condition to internal 'if' PsiElement parent = PsiUtil.skipParenthesizedExprUp(subExpression.getParent()); PsiElementFactory factory = JavaPsiFacade.getElementFactory(project); if (parent ins... | ensureCodeBlock |
76,210 | PsiExpression (PsiPolyadicExpression orChain, PsiExpression subExpression, PsiElementFactory factory) { PsiIfStatement ifStatement = ObjectUtils.tryCast(PsiUtil.skipParenthesizedExprUp(orChain.getParent()), PsiIfStatement.class); if (ifStatement == null) return null; PsiExpression lastOperand = ArrayUtil.getLastElement... | expandLastIfDisjunct |
76,211 | void (PsiElement parent) { PsiStatement initialization = ((PsiForStatement)parent).getInitialization(); if (initialization != null && !SyntaxTraverser.psiTraverser(initialization).filter(PsiExpression.class).filter(SideEffectChecker::mayHaveSideEffects).isEmpty()) { replaceWithStatements((PsiForStatement)parent, initia... | simplifyForStatement |
76,212 | void (boolean conditionAlwaysTrue, PsiIfStatement ifStatement) { if (conditionAlwaysTrue) { replaceWithStatements(ifStatement, ifStatement.getThenBranch()); } else { PsiStatement elseBranch = ifStatement.getElseBranch(); if (elseBranch == null) { ifStatement.delete(); } else { replaceWithStatements(ifStatement, elseBra... | simplifyIfStatement |
76,213 | boolean (@Nullable PsiStatement statement, PsiCodeBlock parent) { return statement instanceof PsiDeclarationStatement && ContainerUtil.exists(((PsiDeclarationStatement)statement).getDeclaredElements(), e -> isConflictingLocalVariable(parent, e)); } | hasConflictingDeclarations |
76,214 | boolean (PsiCodeBlock parent, PsiElement declaration) { if (!(declaration instanceof PsiLocalVariable)) return false; String name = ((PsiLocalVariable)declaration).getName(); return PsiResolveHelper.getInstance(declaration.getProject()).resolveAccessibleReferencedVariable(name, parent) != null; } | isConflictingLocalVariable |
76,215 | PsiBlockStatement (PsiStatement replacement) { PsiBlockStatement newBlock = BlockUtils.createBlockStatement(replacement.getProject()); newBlock.getCodeBlock().add(replacement); return newBlock; } | wrapWithCodeBlock |
76,216 | boolean (@Nullable PsiStatement statement) { if (statement == null) return false; try { return ControlFlowUtil.returnPresent(HighlightControlFlowUtil.getControlFlowNoConstantEvaluate(statement)); } catch (AnalysisCanceledException e) { return false; } } | blockAlwaysReturns |
76,217 | void (@NotNull PsiStatement anchor, @NotNull PsiCodeBlock parentBlock) { PsiStatement[] siblingStatements = parentBlock.getStatements(); List<PsiStatement> statements = Arrays.asList(siblingStatements); int ifIndex = statements.indexOf(anchor); if (ifIndex >= 0 && ifIndex < siblingStatements.length - 1) { int labelInde... | removeFollowingStatements |
76,218 | PsiExpression (PsiExpression expression) { final PsiExpression[] result = {(PsiExpression)expression.copy()}; final ExpressionVisitor expressionVisitor = new ExpressionVisitor(expression.getManager(), true); final IncorrectOperationException[] exception = {null}; result[0].accept(new JavaRecursiveElementVisitor() { @Ov... | createSimplifiedReplacement |
76,219 | void (@NotNull PsiElement element) { // read in all children in advance since due to element replacement involving its siblings invalidation PsiElement[] children = element.getChildren(); for (PsiElement child : children) { child.accept(this); } } | visitElement |
76,220 | void (@NotNull PsiExpression expression) { super.visitExpression(expression); expressionVisitor.clear(); expression.accept(expressionVisitor); if (expressionVisitor.resultExpression != null) { LOG.assertTrue(expressionVisitor.resultExpression.isValid()); try { if (expression != result[0]) { expression.replace(expressio... | visitExpression |
76,221 | boolean (@NotNull PsiExpression expression) { if (!(expression instanceof PsiConditionalExpression) && !PsiTypes.booleanType().equals(expression.getType())) return false; PsiElement parent = expression.getParent(); if (parent instanceof PsiLambdaExpression && !LambdaUtil.isSafeLambdaBodyReplacement((PsiLambdaExpression... | canBeSimplified |
76,222 | void (@NotNull PsiElement element) { if (!canBeSimplified.get().booleanValue()) { super.visitElement(element); } } | visitElement |
76,223 | void (@NotNull PsiExpression expression) { super.visitExpression(expression); expressionVisitor.clear(); expression.accept(expressionVisitor); if (expressionVisitor.canBeSimplifiedFlag) { canBeSimplified.set(Boolean.TRUE); } } | visitExpression |
76,224 | PsiExpression (final PsiManager psiManager, @NonNls String text) { try { return JavaPsiFacade.getElementFactory(psiManager.getProject()).createExpressionFromText(text, null); } catch (IncorrectOperationException e) { LOG.error(e); return null; } } | createExpression |
76,225 | boolean () { canBeSimplifiedFlag = true; return isCreateResult; } | markAndCheckCreateResult |
76,226 | void (@NotNull PsiPolyadicExpression expression) { PsiExpression[] operands = expression.getOperands(); PsiExpression lExpr = operands[0]; IElementType tokenType = expression.getOperationTokenType(); if (!SIMPLIFIABLE_POLYADIC_TOKENS.contains(tokenType)) return; if (JavaTokenType.XOR == tokenType) { boolean negate = fa... | visitPolyadicExpression |
76,227 | void (IElementType tokenType, Boolean lConstBoolean, PsiExpression rOperand) { if (!markAndCheckCreateResult()) { return; } if (JavaTokenType.ANDAND == tokenType || JavaTokenType.AND == tokenType) { if (lConstBoolean.booleanValue()) { resultExpression = rOperand; } else if (!SideEffectChecker.mayHaveSideEffects(rOperan... | simplifyBinary |
76,228 | void (Boolean constBoolean, PsiExpression otherOperand) { if (constBoolean.booleanValue()) { resultExpression = otherOperand; } else { PsiPrefixExpression negated = createNegatedExpression(otherOperand); resultExpression = negated; visitPrefixExpression(negated); } } | simplifyEquation |
76,229 | void (@NotNull PsiConditionalExpression expression) { Boolean condition = getConstBoolean(expression.getCondition()); if (condition == null) return; if (!markAndCheckCreateResult()) { return; } resultExpression = condition.booleanValue() ? expression.getThenExpression() : expression.getElseExpression(); } | visitConditionalExpression |
76,230 | PsiPrefixExpression (PsiExpression otherOperand) { PsiPrefixExpression expression = (PsiPrefixExpression)createExpression(otherOperand.getManager(), "!(xxx)"); assert expression != null; PsiExpression operand = expression.getOperand(); assert operand != null; try { operand.replace(otherOperand); } catch (IncorrectOpera... | createNegatedExpression |
76,231 | void (@NotNull PsiPrefixExpression expression) { PsiExpression operand = expression.getOperand(); Boolean constBoolean = getConstBoolean(operand); if (constBoolean == null) return; IElementType tokenType = expression.getOperationTokenType(); if (JavaTokenType.EXCL == tokenType) { if (!markAndCheckCreateResult()) { retu... | visitPrefixExpression |
76,232 | void (@NotNull PsiParenthesizedExpression expression) { PsiExpression subExpr = expression.getExpression(); Boolean constBoolean = getConstBoolean(subExpr); if (constBoolean == null) return; if (!markAndCheckCreateResult()) { return; } resultExpression = constBoolean.booleanValue() ? trueExpression : falseExpression; } | visitParenthesizedExpression |
76,233 | void (@NotNull PsiReferenceExpression expression) { visitReferenceElement(expression); } | visitReferenceExpression |
76,234 | void () { resultExpression = null; } | clear |
76,235 | Boolean (PsiExpression operand) { if (operand == null) return null; operand = PsiUtil.deparenthesizeExpression(operand); if (operand == null) return null; String text = operand.getText(); return PsiKeyword.TRUE.equals(text) ? Boolean.TRUE : PsiKeyword.FALSE.equals(text) ? Boolean.FALSE : null; } | getConstBoolean |
76,236 | String () { return QuickFixBundle.message("remove.qualifier.action.text"); } | getFamilyName |
76,237 | void (@NotNull ActionContext context, @NotNull PsiReferenceExpression expression, @NotNull ModPsiUpdater updater) { Objects.requireNonNull(expression.getQualifierExpression()).delete(); expression.bindToElement(myResolved); } | invoke |
76,238 | boolean (@NotNull Project project, Editor editor, PsiFile file) { if (myTargetMethod.isValid() && myExpressions.length > myTargetMethod.getParameterList().getParametersCount()) { if (super.isAvailable(project, editor, file)) { final ArrayList<ParameterInfoImpl> result = new ArrayList<>(); if (super.findNewParamsPlace(m... | isAvailable |
76,239 | boolean (PsiExpression[] expressions, PsiMethod targetMethod, PsiSubstitutor substitutor, StringBuilder buf, HashSet<? super ParameterInfoImpl> newParams, PsiParameter[] parameters, List<? super ParameterInfoImpl> result) { // find which parameters to introduce and where Set<String> existingNames = new HashSet<>(); for... | findNewParamsPlace |
76,240 | String () { return QuickFixBundle.message("replace.for.each.loop.with.iterator.for.loop"); } | getFamilyName |
76,241 | void (@NotNull ActionContext context, @NotNull PsiForeachStatement statement, @NotNull ModPsiUpdater updater) { final PsiExpression iteratedValue = statement.getIteratedValue(); if (iteratedValue == null) { return; } final PsiType iteratedValueType = iteratedValue.getType(); if (iteratedValueType == null) { return; } f... | invoke |
76,242 | PsiLocalVariable () { return myOutOfScopeVariable; } | getVariable |
76,243 | void (@NotNull PsiReferenceExpression expression) {} | visitReferenceExpression |
76,244 | void (@NotNull PsiExpression expression) { //Don't look inside expressions } | visitExpression |
76,245 | void (@NotNull PsiLocalVariable variable) { if (referenceName.equals(variable.getName())) { myOutOfScopeVariable = variable; variableCount++; if (variableCount > 1) { stopWalking(); } } } | visitLocalVariable |
76,246 | String () { PsiLocalVariable variable = myOutOfScopeVariable; String varText = !variable.isValid() ? "" : PsiFormatUtil.formatVariable(variable, PsiFormatUtilBase.SHOW_NAME | PsiFormatUtilBase.SHOW_TYPE, PsiSubstitutor.EMPTY); return QuickFixBundle.message("bring.variable.to.scope.text", varText); } | getText |
76,247 | String () { return QuickFixBundle.message("bring.variable.to.scope.family"); } | getFamilyName |
76,248 | ModCommand (@NotNull ActionContext context) { return ModCommand.psiUpdate(myOutOfScopeVariable, (outOfScopeVariable, updater) -> { PsiReferenceExpression reference = updater.getWritable(myUnresolvedReference); invoke(outOfScopeVariable, reference); }); } | perform |
76,249 | void (@NotNull PsiLocalVariable outOfScopeVariable, @NotNull PsiReferenceExpression reference) { PsiFile file = outOfScopeVariable.getContainingFile(); Project project = file.getProject(); outOfScopeVariable.normalizeDeclaration(); PsiUtil.setModifierProperty(outOfScopeVariable, PsiModifier.FINAL, false); PsiElement co... | invoke |
76,250 | PsiReturnStatement () { return myLatestReturn; } | getLatestReturn |
76,251 | String (@NotNull PsiElement stopElement) { final PsiVariable variable = mySearcher.getDeclaration(stopElement); return variable != null ? variable.getName() : myDefaultValue; } | generateValue |
76,252 | ModCommand (@NotNull ActionContext context, @NotNull PsiClass anInterface) { final SearchScope searchScope = anInterface.getUseScope(); final Collection<PsiClass> inheritors = ClassInheritorsSearch.search(anInterface, searchScope, false).findAll(); final MultiMap<PsiElement, @NlsContexts.DialogMessage String> conflicts... | perform |
76,253 | boolean (@NotNull PsiClass aClass) { if (!aClass.isInterface() || aClass.isAnnotationType()) { return false; } final SearchScope useScope = aClass.getUseScope(); for (PsiClass inheritor : ClassInheritorsSearch.search(aClass, useScope, true)) { if (inheritor.isInterface()) { return false; } } return !AnnotationUtil.isAn... | canConvertToClass |
76,254 | void (PsiClass anInterface) { final PsiIdentifier nameIdentifier = anInterface.getNameIdentifier(); assert nameIdentifier != null; final PsiElement whiteSpace = nameIdentifier.getPrevSibling(); assert whiteSpace != null; final PsiElement interfaceToken = whiteSpace.getPrevSibling(); assert interfaceToken != null; final... | changeInterfaceToClass |
76,255 | void (PsiClass anInterface, Collection<PsiClass> inheritors, @NotNull ModPsiUpdater updater) { List<PsiClass> writableInheritors = ContainerUtil.map(inheritors, updater::getWritable); moveSubClassImplementsToExtends(anInterface, writableInheritors); changeInterfaceToClass(anInterface); moveExtendsToImplements(anInterfa... | convertInterfaceToClass |
76,256 | void (PsiClass anInterface) { final PsiReferenceList extendsList = anInterface.getExtendsList(); final PsiReferenceList implementsList = anInterface.getImplementsList(); assert extendsList != null; final PsiJavaCodeReferenceElement[] extendsRefElements = extendsList.getReferenceElements(); for (PsiJavaCodeReferenceElem... | moveExtendsToImplements |
76,257 | void (PsiClass oldInterface, Collection<PsiClass> inheritors) { for (PsiClass inheritor : inheritors) { final PsiReferenceList implementsList = inheritor.getImplementsList(); final PsiReferenceList extendsList = inheritor.getExtendsList(); if (implementsList != null) { moveReference(implementsList, extendsList, oldInte... | moveSubClassImplementsToExtends |
76,258 | void (@NotNull PsiReferenceList source, @Nullable PsiReferenceList target, @NotNull PsiClass oldInterface) { final PsiJavaCodeReferenceElement[] implementsReferences = source.getReferenceElements(); for (PsiJavaCodeReferenceElement implementsReference : implementsReferences) { if (implementsReference.isReferenceTo(oldI... | moveReference |
76,259 | IntentionPreviewInfo (@NotNull Project project, @NotNull Editor editor, @NotNull PsiFile file) { PsiJavaCodeReferenceElement element = getRefElement(); if (element == null) return IntentionPreviewInfo.EMPTY; element = PsiTreeUtil.findSameElementInCopy(element, file); String superClassName = getSuperClassName(element); ... | generatePreview |
76,260 | String (String varName) { return CommonQuickFixBundle.message("fix.create.title.x", myKind.getDescriptionAccusative(), varName); } | getText |
76,261 | void (@NotNull Project project, Editor editor, PsiFile file) { PsiDocumentManager.getInstance(project).commitAllDocuments(); PsiJavaCodeReferenceElement element = getRefElement(); if (element == null || !FileModificationService.getInstance().preparePsiElementForWrite(element)) { return; } String superClassName = getSup... | invoke |
76,262 | boolean () { return false; } | startInWriteAction |
76,263 | String () { return QuickFixBundle.message("create.constructor.matching.super"); } | getFamilyName |
76,264 | boolean (@NotNull Project project, Editor editor, PsiFile file) { if (!myClass.isValid() || !canModify(myClass)) return false; PsiClass base = myClass.getSuperClass(); if (base == null) return false; PsiSubstitutor substitutor = TypeConversionUtil.getSuperClassSubstitutor(base, myClass, PsiSubstitutor.EMPTY); for (PsiM... | isAvailable |
76,265 | void (@NotNull final Project project, final Editor editor, PsiFile file) { if (!FileModificationService.getInstance().prepareFileForWrite(myClass.getContainingFile())) return; chooseConstructor2Delegate(project, editor, myClass); } | invoke |
76,266 | IntentionPreviewInfo (@NotNull Project project, @NotNull Editor editor, @NotNull PsiFile file) { PsiClass targetClass = PsiTreeUtil.findSameElementInCopy(myClass, file); insertConstructor(project, editor, targetClass, false, calculateConstructors(targetClass)); return IntentionPreviewInfo.DIFF; } | generatePreview |
76,267 | void (final Project project, final Editor editor, final PsiClass targetClass) { PsiMethodMember[] constructors = calculateConstructors(targetClass); LOG.assertTrue(constructors.length >=1); // Otherwise we won't have been messing with all this stuff boolean isCopyJavadoc; if (constructors.length > 1 && !ApplicationMana... | chooseConstructor2Delegate |
76,268 | void (Project project, Editor editor, PsiClass targetClass, boolean isCopyJavadoc, PsiMethodMember[] constructors) { try { if (targetClass.getLBrace() == null) { PsiClass psiClass = JavaPsiFacade.getElementFactory(targetClass.getProject()).createClass("X"); targetClass.addRangeAfter(psiClass.getLBrace(), psiClass.getRB... | insertConstructor |
76,269 | boolean () { return false; } | startInWriteAction |
76,270 | String () { return QuickFixBundle.message("add.annotation.attribute.name.family.name"); } | getFamilyName |
76,271 | void (@NotNull ActionContext context, @NotNull PsiNameValuePair element, @NotNull ModPsiUpdater updater) { doFix(element, myName); } | invoke |
76,272 | List<IntentionAction> (@NotNull PsiNameValuePair pair) { final PsiAnnotationMemberValue value = pair.getValue(); if (value == null || pair.getName() != null) { return Collections.emptyList(); } final Collection<String> methodNames = getAvailableAnnotationMethodNames(pair); return ContainerUtil.map(methodNames, name -> ... | createFixes |
76,273 | void (@NotNull PsiNameValuePair annotationParameter, @NotNull String name) { final String text = buildReplacementText(annotationParameter, name); final PsiElementFactory factory = JavaPsiFacade.getElementFactory(annotationParameter.getProject()); final PsiAnnotation newAnnotation = factory.createAnnotationFromText("@A(... | doFix |
76,274 | String (@NotNull PsiNameValuePair annotationParameter, @NotNull String name) { final PsiAnnotationMemberValue value = annotationParameter.getValue(); return value != null ? name + "=" + value.getText() : name + "="; } | buildReplacementText |
76,275 | boolean (@NotNull PsiMethod psiMethod, @Nullable PsiType valueType) { final PsiType expectedType = psiMethod.getReturnType(); if (expectedType == null || valueType == null || expectedType.isAssignableFrom(valueType)) { return true; } if (expectedType instanceof PsiArrayType) { final PsiType componentType = ((PsiArrayTy... | isCompatibleReturnType |
76,276 | Collection<String> (@NotNull PsiNameValuePair pair) { final PsiAnnotationMemberValue value = pair.getValue(); if (value != null && pair.getName() == null) { final PsiElement parent = pair.getParent(); if ((parent instanceof PsiAnnotationParameterList parameterList)) { final PsiClass annotationClass = getAnnotationClass... | getAvailableAnnotationMethodNames |
76,277 | Set<String> (@NotNull PsiAnnotationParameterList parameterList) { return Arrays.stream(parameterList.getAttributes()) .map(PsiNameValuePair::getName) .filter(Objects::nonNull) .collect(Collectors.toSet()); } | getUsedAttributeNames |
76,278 | PsiClass (@NotNull PsiAnnotationParameterList parameterList) { PsiElement parent = parameterList.getParent(); return parent instanceof PsiAnnotation ? ((PsiAnnotation)parent).resolveAnnotationType() : null; } | getAnnotationClass |
76,279 | void (@NotNull ActionContext context, @NotNull PsiAnnotationMemberValue value, @NotNull ModPsiUpdater updater) { String newText = value.getText(); newText = StringUtil.unquoteString(newText); newText = "\"" + newText + "\""; PsiElement newToken = JavaPsiFacade.getElementFactory(context.project()).createExpressionFromTe... | invoke |
76,280 | String () { return QuickFixBundle.message("surround.annotation.parameter.value.with.quotes"); } | getFamilyName |
76,281 | void (@NotNull QuickFixActionRegistrar registrar, @NotNull PsiJavaCodeReferenceElement ref) { if (ref instanceof PsiReferenceExpression) { if (ref.getParent() instanceof PsiNameValuePair nameValuePair && nameValuePair.getValue() == ref) { PsiReference reference = nameValuePair.getReference(); if (reference != null && r... | register |
76,282 | String () { PsiType type = getReturnType(); PsiElement startElement = getStartElement(); String typeName = startElement == null ? "?" : JavaElementKind.fromElement(startElement).lessDescriptive().subject(); return QuickFixBundle.message("fix.variable.type.text", typeName, myName, type == null || !type.isValid() ? "???"... | getText |
76,283 | String () { return QuickFixBundle.message("fix.variable.type.family"); } | getFamilyName |
76,284 | boolean () { return false; } | startInWriteAction |
76,285 | boolean (@NotNull Project project, @NotNull PsiFile file, @NotNull PsiElement startElement, @NotNull PsiElement endElement) { final PsiVariable myVariable = (PsiVariable)startElement; PsiType type = getReturnType(); return myVariable.getTypeElement() != null && BaseIntentionAction.canModify(myVariable) && type != null ... | isAvailable |
76,286 | void (@NotNull final Project project, @NotNull final PsiFile file, @Nullable Editor editor, @NotNull PsiElement startElement, @NotNull PsiElement endElement) { final PsiVariable myVariable = (PsiVariable)startElement; if (changeMethodSignatureIfNeeded(myVariable)) return; WriteCommandAction.writeCommandAction(project, ... | invoke |
76,287 | boolean (PsiVariable myVariable) { PsiParameter myParameter = null; PsiMethod method = null; if (myVariable instanceof PsiParameter) { myParameter = (PsiParameter)myVariable; method = ObjectUtils.tryCast(((PsiParameter)myVariable).getDeclarationScope(), PsiMethod.class); } else if (myVariable instanceof PsiField) { Psi... | changeMethodSignatureIfNeeded |
76,288 | void (PsiVariable myVariable, PsiParameter myParameter, PsiMethod method) { final PsiMethod psiMethod = SuperMethodWarningUtil.checkSuperMethod(method); if (psiMethod == null) return; final int parameterIndex = method.getParameterList().getParameterIndex(myParameter); if (!FileModificationService.getInstance().prepareF... | changeSignature |
76,289 | PsiType () { return myReturnType; } | getReturnType |
76,290 | IntentionPreviewInfo (@NotNull Project project, @NotNull Editor editor, @NotNull PsiFile file) { PsiVariable variable = (PsiVariable)getStartElement(); if (variable instanceof LightRecordField) { variable = ((LightRecordField)variable).getRecordComponent(); } PsiFile containingFile = variable.getContainingFile(); if (c... | generatePreview |
76,291 | String () { return myText; } | getFamilyName |
76,292 | void (@NotNull ActionContext context, @NotNull PsiMethod method, @NotNull ModPsiUpdater updater) { PsiUtil.setModifierProperty(method, PsiModifier.ABSTRACT, false); PsiClass aClass = method.getContainingClass(); if (Objects.requireNonNull(aClass).isInterface() && !method.hasModifierProperty(PsiModifier.STATIC) && !meth... | invoke |
76,293 | void (@NotNull ActionContext context, @NotNull PsiVariable variable, @NotNull ModPsiUpdater updater) { PsiType type = myTypePointer.getType(); if (type == null) return; if (!(variable instanceof PsiReceiverParameter)) { JavaSharedImplUtil.normalizeBrackets(variable); } PsiTypeElement typeElement = variable.getTypeEleme... | invoke |
76,294 | String () { return JavaBundle.message("intention.family.name.set.explicit.variable.type"); } | getFamilyName |
76,295 | String () { return switch (myFixType) { case MAKE_FINAL -> { Collection<PsiVariable> vars = getVariablesToFix(); yield JavaBundle.message("intention.name.make.variable.final", myVariable.getName(), vars.size() == 1 ? 0 : 1); } case MAKE_ARRAY -> { Collection<PsiVariable> vars = getVariablesToFix(); yield JavaBundle.mes... | getText |
76,296 | String () { return QuickFixBundle.message("make.final.family"); } | getFamilyName |
76,297 | boolean (@NotNull Project project, Editor editor, PsiFile file) { return myContext.isValid() && BaseIntentionAction.canModify(myContext) && myVariable.isValid() && myFixType != UNKNOWN && !getVariablesToFix().isEmpty() && !inOwnInitializer(myVariable, myContext); } | isAvailable |
76,298 | boolean (PsiVariable variable, PsiElement context) { return PsiTreeUtil.isAncestor(variable, context, false); } | inOwnInitializer |
76,299 | void (@NotNull Project project, Editor editor, PsiFile file) { try { switch (myFixType) { case MAKE_FINAL -> makeFinal(); case MAKE_ARRAY -> makeArray(); case COPY_TO_FINAL -> copyToFinal(myVariable, myContext); } } catch (IncorrectOperationException e) { LOG.error(e); } finally { getVariablesToFix().clear(); } } | invoke |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.