Dimension (Object component) { String text = getString(component, "text", ""); int columns = getInteger(component, "columns", 0); <error descr="Cannot resolve symbol 'FontMetrics'">FontMetrics</error> fm = getFontMetrics(getFont()); return new Dimension(((columns > 0) ? (columns * fm.<error descr="Cannot resolve method 'charWidth(char)'">charWidth</error>('e')) : 76) + 4, fm.<error descr="Cannot resolve method 'getAscent()'">getAscent</error>() + fm.<error descr="Cannot resolve method 'getDescent()'">getDescent</error>() + 4); // fm.stringWidth(text) }