void ( @NotNull PsiMethodCallExpression expression) { if (m_found) { return; } super.visitMethodCallExpression(expression); final PsiMethod method = expression.resolveMethod(); if (method == null) { return; } @NonNls final String methodName = method.getName(); if (!methodName.equals("exit")) { return; } final PsiClass aClass = method.getContainingClass(); if (aClass == null) { return; } final String className = aClass.getQualifiedName(); if (!"java.lang.System".equals(className) && !"java.lang.Runtime".equals(className)) { return; } m_found = true; }