import org.jetbrains.annotations.NotNull; class Test { private static @NotNull String getString() { return "One" + "Two"; } void test() {} }