boolean (@NotNull Document document, @NotNull String contents, @NotNull String header) { return contents.indexOf('\n') < 0 && myBuilder.fitsRightMargin(myAnonymousClass, document, getClosureStartOffset(), getClosureEndOffset(), header.length() + contents.length() + 5); }