void (@NotNull PsiMethodCallExpression expression) { PsiReferenceExpression ref = expression.getMethodExpression(); PsiElement nameElement = ref.getReferenceNameElement(); if (nameElement != null && PsiKeyword.YIELD.equals(nameElement.getText()) && ref.getQualifierExpression() == null && languageLevel.isLessThan(LanguageLevel.JDK_14)) { PsiExpression qualifier = ExpressionUtils.getEffectiveQualifier(expression.getMethodExpression()); holder.registerProblem(nameElement, JavaErrorBundle.message("yield.unqualified.method.warn"), qualifier == null ? null : new QualifyCallFix(), new RenameFix()); } }