boolean (PsiElement psi) { if (!myContext.getSettings().ALIGN_GROUP_FIELD_DECLARATIONS) { return true; } int maxBlankLines = myContext.getSettings().KEEP_BLANK_LINES_IN_DECLARATIONS; if (maxBlankLines == 0) { return false; } PsiElement prevSibling = psi.getPrevSibling(); return prevSibling != null && StringUtil.countChars(prevSibling.getText(), '\n') > 1; }