boolean (ASTNode dot) { PsiElement dotPsi = dot.getPsi(); PsiElement prev = PsiUtil.skipWhitespaces(dotPsi.getPrevSibling(), false); if (prev != null) { if (prev instanceof GrMethodCall) { final PsiElement last = prev.getLastChild(); if (last instanceof GrClosableBlock) { return last.getText().contains("\n"); } } } return false; }