LocalQuickFix (Object... infos) { PsiCallExpression call = (PsiCallExpression)infos[0]; LanguageLevel level = PsiUtil.getLanguageLevel(call); if (!level.isAtLeast(LanguageLevel.JDK_1_7)) return null; PsiMethod method = call.resolveMethod(); return getCharsetOverload(method).createFix(level); }