boolean (@NotNull ExtractableExpressionPart patternPart, @NotNull ExtractableExpressionPart candidatePart, @NotNull List<? super ExtractedParameter> parameters) { PsiType type = ExtractableExpressionPart.commonType(patternPart, candidatePart); if (type == null) { return false; } parameters.add(new ExtractedParameter(patternPart, candidatePart, type)); return true; }