void (@NonNls @NotNull String displayName) { if (myDisplayName != null) { Logger.getInstance(YamlMetaType.class) .error("reinitialising 'myDisplayName' with value '" + displayName + "', previous value: '" + myDisplayName + "'. " + "Please avoid calling the `setDisplayName` method out of initialisation step, or better switch to constructor " + "'YamlMetaType(String typeName, String displayName)' for initialisation"); } myDisplayName = displayName; }