void () { getSettings(JavaLanguage.INSTANCE).RIGHT_MARGIN = 50; getCustomJavaSettings().ANNOTATION_PARAMETER_WRAP = CommonCodeStyleSettings.WRAP_AS_NEEDED; getCustomJavaSettings().ALIGN_MULTILINE_ANNOTATION_PARAMETERS = false; doTextTest(""" public interface PsiClass{ @Nullable(documentation = "parameter1 value", doc2="parameter2 value") String getQualifiedName(); }""", """ public interface PsiClass { @Nullable(documentation = "parameter1 value", doc2 = "parameter2 value") String getQualifiedName(); }"""); getCustomJavaSettings().ALIGN_MULTILINE_ANNOTATION_PARAMETERS = true; doTextTest(""" public interface PsiClass{ @Nullable(documentation = "parameter1 value", doc2="parameter2 value") String getQualifiedName(); }""", """ public interface PsiClass { @Nullable(documentation = "parameter1 value", doc2 = "parameter2 value") String getQualifiedName(); }"""); }