Indent (@NotNull ASTNode parent, @NotNull CommonCodeStyleSettings.IndentOptions indentOptions) { final IElementType parentType = parent.getElementType(); if (parentType == JavaElementType.MODIFIER_LIST) return Indent.getNoneIndent(); if (parentType instanceof JspCodeBlockType) return Indent.getNormalIndent(); if (parentType instanceof JspClassLevelDeclarationStatementType) return Indent.getNormalIndent(); if (parentType == TokenType.DUMMY_HOLDER) return Indent.getNoneIndent(); if (parentType == JavaElementType.CLASS) return Indent.getNoneIndent(); if (parentType == JavaElementType.IF_STATEMENT) return Indent.getNoneIndent(); if (parentType == JavaElementType.TRY_STATEMENT) return Indent.getNoneIndent(); if (parentType == JavaElementType.CATCH_SECTION) return Indent.getNoneIndent(); if (parentType == JavaElementType.FOR_STATEMENT) return Indent.getNoneIndent(); if (parentType == JavaElementType.FOREACH_STATEMENT) return Indent.getNoneIndent(); if (parentType == JavaElementType.BLOCK_STATEMENT) return Indent.getNoneIndent(); if (parentType == JavaElementType.DO_WHILE_STATEMENT) return Indent.getNoneIndent(); if (parentType == JavaElementType.WHILE_STATEMENT) return Indent.getNoneIndent(); if (parentType == JavaElementType.SWITCH_STATEMENT) return Indent.getNoneIndent(); if (parentType == JavaElementType.METHOD) return Indent.getNoneIndent(); if (parentType == JavaDocElementType.DOC_COMMENT) return Indent.getNoneIndent(); if (parentType == JavaDocElementType.DOC_TAG) return Indent.getNoneIndent(); if (parentType == JavaDocElementType.DOC_INLINE_TAG) return Indent.getNoneIndent(); if (parentType == JavaElementType.IMPORT_LIST) return Indent.getNoneIndent(); if (parentType == JavaElementType.FIELD) return Indent.getContinuationWithoutFirstIndent(indentOptions.USE_RELATIVE_INDENTS); if (parentType == JavaElementType.EXPRESSION_STATEMENT) return Indent.getNoneIndent(); if (parentType == JavaElementType.UNNAMED_CLASS) return Indent.getNoneIndent(); if (SourceTreeToPsiMap.treeElementToPsi(parent) instanceof PsiFile) { return Indent.getNoneIndent(); } return null; }