boolean (PsiMethod method, PsiMethod superMethod) { final PsiDocComment superDocComment = superMethod.getDocComment(); final PsiDocComment docComment = method.getDocComment(); if (superDocComment == null) { if (docComment != null) { return false; } } else if (docComment != null) { if (!superDocComment.getText().equals(docComment.getText())) { return false; } } return true; }